diff options
author | truelight <truelight@openttd.org> | 2004-09-14 16:30:33 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-09-14 16:30:33 +0000 |
commit | 3562d814fb1d01935e3aeaaa8069e20f8d532fc6 (patch) | |
tree | f98a6ac43d66b06b91aa0ebdcb878842174f9716 /console.c | |
parent | d48ce392b2569c3d856caf4f069b9bffbf0de9cc (diff) | |
download | openttd-3562d814fb1d01935e3aeaaa8069e20f8d532fc6.tar.xz |
(svn r249) -Fix: warning fix in console.c/h (Tron)
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |