made Sys_ConsoleInput() to return const

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@508 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2011-12-12 12:02:37 +00:00
parent 7e595df33f
commit 6fffda6b99
4 changed files with 5 additions and 6 deletions

View file

@ -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)
{

View file

@ -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

View file

@ -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;

View file

@ -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;