mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
mconf: Fix compile warning: "warning: conflicting types for ‘sym_set_all_changed’"
SVN-Revision: 29190
This commit is contained in:
parent
ef40c7049a
commit
50a7ff97ef
@ -266,6 +266,26 @@ static struct symbol *sym_calc_choice(struct symbol *sym)
|
|||||||
return NULL;
|
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)
|
void sym_calc_value(struct symbol *sym)
|
||||||
{
|
{
|
||||||
struct symbol_value newval, oldval;
|
struct symbol_value newval, oldval;
|
||||||
@ -396,26 +416,6 @@ void sym_clear_all_valid(void)
|
|||||||
sym_calc_value(modules_sym);
|
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)
|
bool sym_tristate_within_range(struct symbol *sym, tristate val)
|
||||||
{
|
{
|
||||||
int type = sym_get_type(sym);
|
int type = sym_get_type(sym);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user