Commit ab63f58f253c3eca620347f5180ca3d6a1b6aa38
1 parent
131c60a95e
Exists in
master
and in
4 other branches
kconfig/conf: mark xfgets() private
This function has not much reason to be public. In the mean time, convert declaration from K&R C to ISO C. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Showing 2 changed files with 3 additions and 7 deletions Side-by-side Diff
scripts/kconfig/conf.c
... | ... | @@ -18,6 +18,7 @@ |
18 | 18 | |
19 | 19 | static void conf(struct menu *menu); |
20 | 20 | static void check_conf(struct menu *menu); |
21 | +static void xfgets(char *str, int size, FILE *in); | |
21 | 22 | |
22 | 23 | enum input_mode { |
23 | 24 | oldaskconfig, |
24 | 25 | |
... | ... | @@ -672,13 +673,11 @@ |
672 | 673 | } |
673 | 674 | return 0; |
674 | 675 | } |
676 | + | |
675 | 677 | /* |
676 | 678 | * Helper function to facilitate fgets() by Jean Sacren. |
677 | 679 | */ |
678 | -void xfgets(str, size, in) | |
679 | - char *str; | |
680 | - int size; | |
681 | - FILE *in; | |
680 | +void xfgets(char *str, int size, FILE *in) | |
682 | 681 | { |
683 | 682 | if (fgets(str, size, in) == NULL) |
684 | 683 | fprintf(stderr, "\nError in reading or end of file.\n"); |
scripts/kconfig/lkc.h