diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-13 17:56:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-13 17:56:27 -0700 |
commit | 090b710e8a0b7fe6f4752c5a439261f955075ebc (patch) | |
tree | c85856f2955c3b0795db2c30ef0b334c0614e326 /scripts/kconfig/lkc.h | |
parent | 10041d2d14688e207d0d829095147aa82c1f211b (diff) | |
parent | 4418a2b904805814bbd14b555d6add6a175f49f3 (diff) | |
download | kernel_goldelico_gta04-090b710e8a0b7fe6f4752c5a439261f955075ebc.zip kernel_goldelico_gta04-090b710e8a0b7fe6f4752c5a439261f955075ebc.tar.gz kernel_goldelico_gta04-090b710e8a0b7fe6f4752c5a439261f955075ebc.tar.bz2 |
Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
kconfig: Fix warning: ignoring return value of 'fgets'
kconfig: Fix warning: ignoring return value of 'fwrite'
nconfig: Fix segfault when menu is empty
kconfig: fix tristate choice with minimal config
kconfig: fix savedefconfig for tristate choices
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r-- | scripts/kconfig/lkc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 76db065..bdf71bd 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h @@ -72,6 +72,9 @@ void zconf_nextfile(const char *name); int zconf_lineno(void); char *zconf_curname(void); +/* conf.c */ +void xfgets(char *str, int size, FILE *in); + /* confdata.c */ const char *conf_get_configname(void); const char *conf_get_autoconfig_name(void); @@ -80,6 +83,13 @@ void sym_set_change_count(int count); void sym_add_change_count(int count); void conf_set_all_new_symbols(enum conf_def_mode mode); +/* confdata.c and expr.c */ +static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) +{ + if (fwrite(str, len, count, out) < count) + fprintf(stderr, "\nError in writing or end of file.\n"); +} + /* kconfig_load.c */ void kconfig_load(void); |