X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=config%2Fconfdata.c;h=d53f34564141e6315b7627a48623229e41ed5e8d;hb=6be08df9d385c3a7a49e22883e052fc13d4e5794;hp=8028a9d3fdaf3a1136265f026682f1bc0bf8d80f;hpb=93bd65e141e01c6cee1418044bab688a76f19db7;p=carl9170fw.git diff --git a/config/confdata.c b/config/confdata.c index 8028a9d..d53f345 100644 --- a/config/confdata.c +++ b/config/confdata.c @@ -16,6 +16,11 @@ #include "lkc.h" +struct conf_printer { + void (*print_symbol)(FILE *, struct symbol *, const char *, void *); + void (*print_comment)(FILE *, const char *, void *); +}; + static void conf_warning(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); @@ -263,8 +268,7 @@ int conf_read_simple(const char *name, int def) goto load; sym_add_change_count(1); if (!sym_defconfig_list) { - if (modules_sym) - sym_calc_value(modules_sym); + sym_calc_value(modules_sym); return 1; } @@ -399,9 +403,7 @@ setsym: } free(line); fclose(in); - - if (modules_sym) - sym_calc_value(modules_sym); + sym_calc_value(modules_sym); return 0; }