Fixed return values on testhotplug mainline.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 06 Feb 2014 07:38:41 -0500
changeset 8181 3632013330ad
parent 8180 16afd5b764b3
child 8182 92f71edde3be
Fixed return values on testhotplug mainline.
test/testhotplug.c
--- a/test/testhotplug.c	Thu Feb 06 07:38:04 2014 -0500
+++ b/test/testhotplug.c	Thu Feb 06 07:38:41 2014 -0500
@@ -126,6 +126,8 @@
     }
 
     SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK);
+
+    return 0;
 }
 #else
 
@@ -133,7 +135,7 @@
 main(int argc, char *argv[])
 {
     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
-    exit(1);
+    return 1;
 }
 
 #endif