summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-09-14 16:30:33 +0000
committertruelight <truelight@openttd.org>2004-09-14 16:30:33 +0000
commit3562d814fb1d01935e3aeaaa8069e20f8d532fc6 (patch)
treef98a6ac43d66b06b91aa0ebdcb878842174f9716
parentd48ce392b2569c3d856caf4f069b9bffbf0de9cc (diff)
downloadopenttd-3562d814fb1d01935e3aeaaa8069e20f8d532fc6.tar.xz
(svn r249) -Fix: warning fix in console.c/h (Tron)
-rw-r--r--console.c4
-rw-r--r--console.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/console.c b/console.c
index 612c6dbf0..06d59059a 100644
--- a/console.c
+++ b/console.c
@@ -768,7 +768,7 @@ bool IConsoleCmdHookHandle(_iconsole_cmd * hook_cmd, byte type)
return proc(hook_cmd);
}
-void IConsoleCmdExec(byte * cmdstr)
+void IConsoleCmdExec(const byte* cmdstr)
{
_iconsole_var * (*function)(byte argc, byte* argv[], byte argt[]);
byte * tokens[20];
@@ -799,7 +799,7 @@ void IConsoleCmdExec(byte * cmdstr)
longtoken=false;
valid_token=false;
skip_lt_change=false;
- l=strlen((char *) cmdstr);
+ l=strlen(cmdstr);
i=0;
c=0;
tokens[c] = tokenstream;
diff --git a/console.h b/console.h
index 72f9ddc49..8be62533f 100644
--- a/console.h
+++ b/console.h
@@ -66,7 +66,7 @@ _iconsole_var * _iconsole_vars; // list of registred vars
// ** console colors ** //
VARDEF byte _iconsole_color_default;
VARDEF byte _iconsole_color_error;
-VARDEF byte _iconsole_color_warning;
+VARDEF byte _iconsole_color_warning;
VARDEF byte _iconsole_color_debug;
VARDEF byte _iconsole_color_commands;
@@ -93,7 +93,7 @@ void IConsoleCmdBufferNavigate(signed char direction);
void IConsolePrint(byte color_code, const byte* string);
void CDECL IConsolePrintF(byte color_code, const char *s, ...);
void IConsoleDebug(byte* string);
-void IConsoleError(const byte* string);
+void IConsoleError(const byte* string);
void IConsoleWarning(const byte* string);
// *** Commands *** //
@@ -115,7 +115,7 @@ void IConsoleVarDump(_iconsole_var * var, const byte * dump_desc);
// *** Parser *** //
-void IConsoleCmdExec(byte * cmdstr);
+void IConsoleCmdExec(const byte* cmdstr);
// ** console std lib ** //
void IConsoleStdLibRegister();