(svn r1621) -Fix: fixed some compiler warnings for the random-debug-switch
authortruelight
Sun, 23 Jan 2005 19:02:53 +0000
changeset 1120 047e8b16a954
parent 1119 44a402ca7c01
child 1121 8a7e7ace154f
(svn r1621) -Fix: fixed some compiler warnings for the random-debug-switch
functions.h
misc.c
--- a/functions.h	Sun Jan 23 17:51:22 2005 +0000
+++ b/functions.h	Sun Jan 23 19:02:53 2005 +0000
@@ -113,9 +113,9 @@
 
 #ifdef RANDOM_DEBUG
 	#define Random() DoRandom(__LINE__, __FILE__)
-	uint32 DoRandom(uint line, char *file);
+	uint32 DoRandom(int line, const char *file);
 	#define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__)
-	uint DoRandomRange(uint max, uint line, char *file);
+	uint DoRandomRange(uint max, int line, const char *file);
 #else
 	uint32 Random(void);
 	uint RandomRange(uint max);
--- a/misc.c	Sun Jan 23 17:51:22 2005 +0000
+++ b/misc.c	Sun Jan 23 19:02:53 2005 +0000
@@ -29,7 +29,7 @@
 #ifdef RANDOM_DEBUG
 #include "network_data.h"
 
-uint32 DoRandom(uint line, char *file)
+uint32 DoRandom(int line, const char *file)
 #else
 uint32 Random(void)
 #endif
@@ -61,7 +61,7 @@
 }
 
 #ifdef RANDOM_DEBUG
-uint DoRandomRange(uint max, uint line, char *file)
+uint DoRandomRange(uint max, int line, const char *file)
 {
 	return (uint16)DoRandom(line, file) * max >> 16;
 }