summaryrefslogtreecommitdiff
path: root/extra/config/menu.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-18 03:12:04 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-18 03:12:04 +0000
commit85b6ebca5cef107dfafa9150605aaae1f8c51827 (patch)
tree707e493a5ee7b4ebcd18d142c88654f746e98d4b /extra/config/menu.c
parentfec64b1a416cfeb0c9e57292924293d246251c8d (diff)
sync with kernel
Diffstat (limited to 'extra/config/menu.c')
-rw-r--r--extra/config/menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/config/menu.c b/extra/config/menu.c
index 0c13156f3..5cfa6c405 100644
--- a/extra/config/menu.c
+++ b/extra/config/menu.c
@@ -136,9 +136,9 @@ struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *e
return prop;
}
-void menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep)
+struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep)
{
- menu_add_prop(type, prompt, NULL, dep);
+ return menu_add_prop(type, prompt, NULL, dep);
}
void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep)
@@ -365,9 +365,9 @@ bool menu_is_visible(struct menu *menu)
const char *menu_get_prompt(struct menu *menu)
{
if (menu->prompt)
- return menu->prompt->text;
+ return _(menu->prompt->text);
else if (menu->sym)
- return menu->sym->name;
+ return _(menu->sym->name);
return NULL;
}