projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: fix trivial typos and update mconf documentation
[carl9170fw.git]
/
config
/
menu.c
diff --git
a/config/menu.c
b/config/menu.c
index 3a9c674932607ca9c1bdc4d62a15a98829e9b213..b9701010de8ccb7de97417bf474d1eea2ff41b3d 100644
(file)
--- a/
config/menu.c
+++ b/
config/menu.c
@@
-199,6
+199,12
@@
void menu_add_option(int token, char *arg)
{
switch (token) {
case T_OPT_MODULES:
{
switch (token) {
case T_OPT_MODULES:
+ if (modules_sym)
+ zconf_error("symbol '%s' redefines option 'modules'"
+ " already defined by symbol '%s'",
+ current_entry->sym->name,
+ modules_sym->name
+ );
modules_sym = current_entry->sym;
break;
case T_OPT_DEFCONFIG_LIST:
modules_sym = current_entry->sym;
break;
case T_OPT_DEFCONFIG_LIST:
@@
-591,7
+597,7
@@
static void get_prompt_str(struct gstr *r, struct property *prop,
}
/*
}
/*
- * get p
e
operty of type P_SYMBOL
+ * get p
r
operty of type P_SYMBOL
*/
static struct property *get_symbol_prop(struct symbol *sym)
{
*/
static struct property *get_symbol_prop(struct symbol *sym)
{