Commit c794e99c authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] properly fix double current_menu

The two current_menu variables are really two separate variables, so keep
them separate.
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3c3f504a
......@@ -59,9 +59,6 @@ void menu_set_type(int type);
struct file *file_lookup(const char *name);
int file_write_dep(const char *name);
extern struct menu *current_entry;
extern struct menu *current_menu;
/* symbol.c */
void sym_init(void);
void sym_clear_all_valid(void);
......
......@@ -89,7 +89,7 @@ static char *args[1024], **argptr = args;
static int indent;
static struct termios ios_org;
static int rows = 0, cols = 0;
struct menu *current_menu;
static struct menu *current_menu;
static int child_count;
static int do_resize;
static int single_menu_mode;
......
......@@ -10,7 +10,6 @@
#include "lkc.h"
struct menu rootmenu;
struct menu *current_menu, *current_entry;
static struct menu **last_entry_ptr;
struct file *file_list;
......
......@@ -25,6 +25,8 @@ static bool zconf_endtoken(int token, int starttoken, int endtoken);
struct symbol *symbol_hash[257];
static struct menu *current_menu, *current_entry;
#define YYERROR_VERBOSE
%}
%expect 40
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment