From 9e63b852381f1fc228dedc8eed053b52d4a5eac8 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 15 Oct 2004 21:08:25 +0000 Subject: [PATCH] changed main() argv parameter to non-const, and casting it to const on assignment instead, this should fix an SDL compilation problem git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4636 d7cf8633-e32d-0410-b094-e92efae38249 --- sys_linux.c | 4 ++-- sys_sdl.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys_linux.c b/sys_linux.c index 1df663ae..ea91828f 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -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); diff --git a/sys_sdl.c b/sys_sdl.c index 97c2cec1..11d4894d 100644 --- 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); -- 2.39.2