summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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;