diff --git a/Quake/host.c b/Quake/host.c index 9458ea6a..8762d8b8 100644 --- a/Quake/host.c +++ b/Quake/host.c @@ -598,7 +598,7 @@ Add them exactly as if they had been typed at the console */ void Host_GetConsoleCommands (void) { - char *cmd; + const char *cmd; while (1) { diff --git a/Quake/sys.h b/Quake/sys.h index 548129c5..5d4594cd 100644 --- a/Quake/sys.h +++ b/Quake/sys.h @@ -1,6 +1,5 @@ /* Copyright (C) 1996-2001 Id Software, Inc. -Copyright (C) 2002-2009 John Fitzgibbons and others This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -40,7 +39,7 @@ void Sys_FileClose (int handle); void Sys_FileSeek (int handle, int position); int Sys_FileRead (int handle, void *dest, int count); int Sys_FileWrite (int handle,const void *data, int count); -int Sys_FileTime (const char *path); +int Sys_FileTime (const char *path); void Sys_mkdir (const char *path); // @@ -56,7 +55,7 @@ void Sys_Quit (void) __attribute__((__noreturn__)); double Sys_FloatTime (void); -char *Sys_ConsoleInput (void); +const char *Sys_ConsoleInput (void); void Sys_Sleep (void); // called to yield for a little bit so as diff --git a/Quake/sys_sdl_unix.c b/Quake/sys_sdl_unix.c index f31f6210..141e6ee3 100644 --- a/Quake/sys_sdl_unix.c +++ b/Quake/sys_sdl_unix.c @@ -202,7 +202,7 @@ double Sys_FloatTime (void) return SDL_GetTicks() / 1000.0; } -char *Sys_ConsoleInput (void) +const char *Sys_ConsoleInput (void) { static char con_text[256]; static int textlen; diff --git a/Quake/sys_sdl_win.c b/Quake/sys_sdl_win.c index d69f284a..36765eb8 100644 --- a/Quake/sys_sdl_win.c +++ b/Quake/sys_sdl_win.c @@ -277,7 +277,7 @@ double Sys_FloatTime (void) return SDL_GetTicks() / 1000.0; } -char *Sys_ConsoleInput (void) +const char *Sys_ConsoleInput (void) { static char con_text[256]; static int textlen;