changeset 28:e45ae779d439

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 24 May 2010 00:18:41 +0300
parents 0eba27fee6da
children d83239a98d1e
files pwplib/pwplib-unix.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pwplib/pwplib-unix.c	Mon May 24 00:14:18 2010 +0300
+++ b/pwplib/pwplib-unix.c	Mon May 24 00:18:41 2010 +0300
@@ -109,7 +109,7 @@
 #endif
     /* With SDL, we let it handle the signals */
     if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_EVENTTHREAD | sdl_flags) != 0) {
-        pwpwrite("* SDL could not be initialized.\n");
+        pwpwrite("* SDL could not be initialized (%s).\n", SDL_GetError());
         sdl_init = 0;
     } else
         sdl_init = 1;
@@ -274,8 +274,6 @@
 
 int pwplib_init(int argc, char **argv)
 {
-    int i = 0, quit = 0;
-
     pwplib.argc = argc;
     pwplib.argv = argv;
 
@@ -285,7 +283,6 @@
     {
         printhelp();
         exit(0);
-        pwplib.setup[SETUP_SHUTUP]++;
     }
 
     if (!pwplib.setup[SETUP_SHUTUP])