diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-11-23 09:41:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-01-10 08:27:33 +0100 |
commit | c757c676428d70d854c3c7c637b8b7e7a8697043 (patch) | |
tree | 47e95747bfba6ad73e240230ea72309a2d85c6df /include | |
parent | 9fe05e5ebc13f215d96957ca18e00b71c0d926a4 (diff) | |
download | barebox-c757c676428d70d854c3c7c637b8b7e7a8697043.tar.gz barebox-c757c676428d70d854c3c7c637b8b7e7a8697043.tar.xz |
menu: sanitize menu_add_title
passing a string to menu_add_title() which then gets free by this
function is just plain ugly. Pass it a const char * which gets
duplicated in menu_add_title() when necessary.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/menu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/menu.h b/include/menu.h index 3e704a8907..2fef064499 100644 --- a/include/menu.h +++ b/include/menu.h @@ -91,7 +91,7 @@ int menu_set_selected_entry(struct menu *m, struct menu_entry* me); int menu_set_selected(struct menu *m, int num); int menu_set_auto_select(struct menu *m, int delay); struct menu* menu_get_menus(void); -void menu_add_title(struct menu *m, char *display); +void menu_add_title(struct menu *m, const char *display); /* * menu entry functions |