diff options
author | Michael Büsch <mb@bu3sch.de> | 2011-11-16 17:27:36 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2011-11-16 17:27:36 +0000 |
commit | f1f34a5169fe2ae79db6263bddc9b09164ff0fe4 (patch) | |
tree | 00a35ce07c7be623c716b1ebe6b896828a61008a /scripts | |
parent | ef0705ae0e777388a353f36d27fd6a5ac350dd3d (diff) | |
download | master-187ad058-f1f34a5169fe2ae79db6263bddc9b09164ff0fe4.tar.gz master-187ad058-f1f34a5169fe2ae79db6263bddc9b09164ff0fe4.tar.bz2 master-187ad058-f1f34a5169fe2ae79db6263bddc9b09164ff0fe4.zip |
mconf: Fix compile warning:
"warning: conflicting types for ‘sym_set_all_changed’"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29190 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/config/symbol.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/scripts/config/symbol.c b/scripts/config/symbol.c index 1d718da3a9..49bb254558 100644 --- a/scripts/config/symbol.c +++ b/scripts/config/symbol.c @@ -266,6 +266,26 @@ static struct symbol *sym_calc_choice(struct symbol *sym) return NULL; } +void sym_set_changed(struct symbol *sym) +{ + struct property *prop; + + sym->flags |= SYMBOL_CHANGED; + for (prop = sym->prop; prop; prop = prop->next) { + if (prop->menu) + prop->menu->flags |= MENU_CHANGED; + } +} + +void sym_set_all_changed(void) +{ + struct symbol *sym; + int i; + + for_all_symbols(i, sym) + sym_set_changed(sym); +} + void sym_calc_value(struct symbol *sym) { struct symbol_value newval, oldval; @@ -396,26 +416,6 @@ void sym_clear_all_valid(void) sym_calc_value(modules_sym); } -void sym_set_changed(struct symbol *sym) -{ - struct property *prop; - - sym->flags |= SYMBOL_CHANGED; - for (prop = sym->prop; prop; prop = prop->next) { - if (prop->menu) - prop->menu->flags |= MENU_CHANGED; - } -} - -void sym_set_all_changed(void) -{ - struct symbol *sym; - int i; - - for_all_symbols(i, sym) - sym_set_changed(sym); -} - bool sym_tristate_within_range(struct symbol *sym, tristate val) { int type = sym_get_type(sym); |