mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
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>
This commit is contained in:
parent
131c60a95e
commit
ab63f58f25
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
static void conf(struct menu *menu);
|
static void conf(struct menu *menu);
|
||||||
static void check_conf(struct menu *menu);
|
static void check_conf(struct menu *menu);
|
||||||
|
static void xfgets(char *str, int size, FILE *in);
|
||||||
|
|
||||||
enum input_mode {
|
enum input_mode {
|
||||||
oldaskconfig,
|
oldaskconfig,
|
||||||
@ -672,13 +673,11 @@ int main(int ac, char **av)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Helper function to facilitate fgets() by Jean Sacren.
|
* Helper function to facilitate fgets() by Jean Sacren.
|
||||||
*/
|
*/
|
||||||
void xfgets(str, size, in)
|
void xfgets(char *str, int size, FILE *in)
|
||||||
char *str;
|
|
||||||
int size;
|
|
||||||
FILE *in;
|
|
||||||
{
|
{
|
||||||
if (fgets(str, size, in) == NULL)
|
if (fgets(str, size, in) == NULL)
|
||||||
fprintf(stderr, "\nError in reading or end of file.\n");
|
fprintf(stderr, "\nError in reading or end of file.\n");
|
||||||
|
@ -76,9 +76,6 @@ void zconf_nextfile(const char *name);
|
|||||||
int zconf_lineno(void);
|
int zconf_lineno(void);
|
||||||
const char *zconf_curname(void);
|
const char *zconf_curname(void);
|
||||||
|
|
||||||
/* conf.c */
|
|
||||||
void xfgets(char *str, int size, FILE *in);
|
|
||||||
|
|
||||||
/* confdata.c */
|
/* confdata.c */
|
||||||
const char *conf_get_configname(void);
|
const char *conf_get_configname(void);
|
||||||
const char *conf_get_autoconfig_name(void);
|
const char *conf_get_autoconfig_name(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user