Fixed return values on testhotplug mainline.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 06 Feb 2014 07:38:41 -0500
changeset 81813632013330ad
parent 8180 16afd5b764b3
child 8182 92f71edde3be
Fixed return values on testhotplug mainline.
test/testhotplug.c
     1.1 --- a/test/testhotplug.c	Thu Feb 06 07:38:04 2014 -0500
     1.2 +++ b/test/testhotplug.c	Thu Feb 06 07:38:41 2014 -0500
     1.3 @@ -126,6 +126,8 @@
     1.4      }
     1.5  
     1.6      SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK);
     1.7 +
     1.8 +    return 0;
     1.9  }
    1.10  #else
    1.11  
    1.12 @@ -133,7 +135,7 @@
    1.13  main(int argc, char *argv[])
    1.14  {
    1.15      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
    1.16 -    exit(1);
    1.17 +    return 1;
    1.18  }
    1.19  
    1.20  #endif