From 257ab5f5731afc563ed65a5bc4f0c42206706455 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 6 Feb 2014 07:38:41 -0500 Subject: [PATCH] Fixed return values on testhotplug mainline. --- test/testhotplug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testhotplug.c b/test/testhotplug.c index 2ae54b25d..8c1cec49d 100644 --- a/test/testhotplug.c +++ b/test/testhotplug.c @@ -126,6 +126,8 @@ main(int argc, char *argv[]) } SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK); + + return 0; } #else @@ -133,7 +135,7 @@ int main(int argc, char *argv[]) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n"); - exit(1); + return 1; } #endif