some more constifications and fixes for deprecated conversion

from string constant to char*


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@303 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-08-29 12:04:19 +00:00
parent c8888a8720
commit e681ad30f9
3 changed files with 4 additions and 3 deletions

View file

@ -153,7 +153,7 @@ CL_EstablishConnection
Host should be either "local" or a net address to be passed on
=====================
*/
void CL_EstablishConnection (char *host)
void CL_EstablishConnection (const char *host)
{
if (cls.state == ca_dedicated)
return;

View file

@ -296,7 +296,7 @@ void CL_DecayLights (void);
void CL_Init (void);
void CL_EstablishConnection (char *host);
void CL_EstablishConnection (const char *host);
void CL_Signon1 (void);
void CL_Signon2 (void);
void CL_Signon3 (void);

View file

@ -1182,6 +1182,7 @@ VID_Init
*/
void VID_Init (void)
{
static char vid_center[] = "SDL_VIDEO_CENTERED=center";
const SDL_VideoInfo *info;
int i, existingmode;
int basenummodes, width, height, bpp, findbpp, done;
@ -1207,7 +1208,7 @@ void VID_Init (void)
if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1)
Sys_Error("Could not initialize SDL Video");
SDL_putenv("SDL_VIDEO_CENTERED=center");
SDL_putenv (vid_center);
VID_InitDIB();
basenummodes = nummodes = 1;