summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan7 <panter@gmx.net>2015-07-24 22:56:00 +0200
committerTim Angus <tim@ngus.net>2016-04-07 11:02:31 +0100
commit95cc01fb25e20822fe9b091702789111cc5d1b8b (patch)
tree91e817f1362c251fec69a0a9efd553324aaccc2e
parent78d3929f526d06b1879c565ed08b337ba6138cae (diff)
SDL_Init zero check
-rw-r--r--src/sdl/sdl_glimp.c2
-rw-r--r--src/sdl/sdl_input.c2
-rw-r--r--src/sdl/sdl_snd.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c
index b41da64c..9f86dd9e 100644
--- a/src/sdl/sdl_glimp.c
+++ b/src/sdl/sdl_glimp.c
@@ -536,7 +536,7 @@ static qboolean GLimp_StartDriverAndSetMode( qboolean failSafe, qboolean fullscr
{
const char *driverName;
- if (SDL_Init(SDL_INIT_VIDEO) == -1)
+ if (SDL_Init(SDL_INIT_VIDEO) != 0)
{
ri.Printf( PRINT_ALL, "SDL_Init( SDL_INIT_VIDEO ) FAILED (%s)\n", SDL_GetError());
return qfalse;
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c
index 2b466744..fbe90d08 100644
--- a/src/sdl/sdl_input.c
+++ b/src/sdl/sdl_input.c
@@ -486,7 +486,7 @@ static void IN_InitJoystick( void )
if (!SDL_WasInit(SDL_INIT_JOYSTICK))
{
Com_DPrintf("Calling SDL_Init(SDL_INIT_JOYSTICK)...\n");
- if (SDL_Init(SDL_INIT_JOYSTICK) == -1)
+ if (SDL_Init(SDL_INIT_JOYSTICK) != 0)
{
Com_DPrintf("SDL_Init(SDL_INIT_JOYSTICK) failed: %s\n", SDL_GetError());
return;
diff --git a/src/sdl/sdl_snd.c b/src/sdl/sdl_snd.c
index a087c486..9420f0ba 100644
--- a/src/sdl/sdl_snd.c
+++ b/src/sdl/sdl_snd.c
@@ -157,7 +157,7 @@ qboolean SNDDMA_Init(void)
if (!SDL_WasInit(SDL_INIT_AUDIO))
{
- if (SDL_Init(SDL_INIT_AUDIO) == -1)
+ if (SDL_Init(SDL_INIT_AUDIO) != 0)
{
Com_Printf( "FAILED (%s)\n", SDL_GetError( ) );
return qfalse;