]> Git Repo - linux.git/blobdiff - scripts/kconfig/lkc.h
kconfig: Fix warning: ignoring return value of 'fwrite'
[linux.git] / scripts / kconfig / lkc.h
index 76db065ed72c069aa4371d875bdcfe71c96a9316..2ac33f5d273c0e7e4c41197f933ec2c593ce2571 100644 (file)
@@ -80,6 +80,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);
 
This page took 0.029863 seconds and 4 git commands to generate.