(svn r249) -Fix: warning fix in console.c/h (Tron)
authortruelight
Tue, 14 Sep 2004 16:30:33 +0000
changeset 248 bd894287e3f2
parent 247 1cbc32ff06eb
child 249 c616db264dab
(svn r249) -Fix: warning fix in console.c/h (Tron)
console.c
console.h
--- a/console.c	Tue Sep 14 16:10:20 2004 +0000
+++ b/console.c	Tue Sep 14 16:30:33 2004 +0000
@@ -768,7 +768,7 @@
 	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 @@
 	longtoken=false;
 	valid_token=false;
 	skip_lt_change=false;
-	l=strlen((char *) cmdstr);
+	l=strlen(cmdstr);
 	i=0;
 	c=0;
 	tokens[c] = tokenstream;
--- a/console.h	Tue Sep 14 16:10:20 2004 +0000
+++ b/console.h	Tue Sep 14 16:30:33 2004 +0000
@@ -66,7 +66,7 @@
 // ** 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 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 @@
 
 // *** Parser *** //
 
-void IConsoleCmdExec(byte * cmdstr);
+void IConsoleCmdExec(const byte* cmdstr);
 
 // ** console std lib ** //
 void IConsoleStdLibRegister();