]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed main() argv parameter to non-const, and casting it to const on assignment...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Oct 2004 21:08:25 +0000 (21:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Oct 2004 21:08:25 +0000 (21:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4636 d7cf8633-e32d-0410-b094-e92efae38249

sys_linux.c
sys_sdl.c

index 1df663ae20b5934b80c31eca8dad65aa7c0b8629..ea91828fcc01419a788eca385eb510ff319ebc6b 100644 (file)
@@ -211,14 +211,14 @@ char *Sys_GetClipboardData (void)
        return NULL;
 }
 
-int main (int argc, const char **argv)
+int main (int argc, char **argv)
 {
        double frameoldtime, framenewtime;
 
        signal(SIGFPE, SIG_IGN);
 
        com_argc = argc;
-       com_argv = argv;
+       com_argv = (const char **)argv;
 
 #ifndef WIN32
        fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
index 97c2cec137a58d21e8d2218c0999be4a2806f599..11d4894dfbb022964e4eb7c376280f127371b41a 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -209,14 +209,14 @@ char *Sys_GetClipboardData (void)
 #endif
 }
 
-int main (int argc, const char *argv[])
+int main (int argc, char *argv[])
 {
        double frameoldtime, framenewtime;
 
        signal(SIGFPE, SIG_IGN);
 
        com_argc = argc;
-       com_argv = argv;
+       com_argv = (const char **)argv;
 
 #ifndef WIN32
        fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);