summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-08-21 18:04:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-30 20:57:20 +0200
commitb11b88de64366210e6bb7a5e669bd6f4e770ccd7 (patch)
tree0a69cb68b909624afbcc32d54f1bc300d719624c /include
parenta75d6dacc3832c9c07eef3bfb35d591eec5b6a58 (diff)
downloadbarebox-b11b88de64366210e6bb7a5e669bd6f4e770ccd7.tar.gz
barebox-b11b88de64366210e6bb7a5e669bd6f4e770ccd7.tar.xz
menu: remove superfluous struct menu_entry member from struct menu
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/menu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/menu.h b/include/menu.h
index 128d671b0b..4f85ed69f8 100644
--- a/include/menu.h
+++ b/include/menu.h
@@ -43,7 +43,8 @@ struct menu {
char *display;
struct list_head list;
- struct menu_entry entries;
+ struct list_head entries;
+
int nb_entries;
int width;
struct menu_entry *selected;
@@ -59,7 +60,7 @@ static inline struct menu* menu_alloc(void)
m = calloc(1, sizeof(struct menu));
if (m) {
- INIT_LIST_HEAD(&m->entries.list);
+ INIT_LIST_HEAD(&m->entries);
m->nb_entries = 0;
}
return m;