From 037569c4e52f37196275dbafec670f54da249cf8 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 16 Jan 2008 22:15:56 +0000 Subject: compile fixes --- src/engine/e_console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/engine/e_console.c') diff --git a/src/engine/e_console.c b/src/engine/e_console.c index edcd90fd..a8d01828 100644 --- a/src/engine/e_console.c +++ b/src/engine/e_console.c @@ -240,7 +240,7 @@ static int console_validate(COMMAND *command, struct lexer_result *result) return -1; break; default: - // unknown char, so just continue... + /* unknown char, so just continue... */ c++; continue; } @@ -275,9 +275,10 @@ void console_execute(const char *str) else if (result.num_tokens > 0) { const char *name; + COMMAND *command; extract_result_string(&result, 0, &name); - COMMAND *command = console_find_command(name); + command = console_find_command(name); if (command) { -- cgit 1.4.1