Skip to content

Commit

Permalink
Fixed return values on testhotplug mainline.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 6, 2014
1 parent 1191a90 commit 257ab5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/testhotplug.c
Expand Up @@ -126,14 +126,16 @@ main(int argc, char *argv[])
}

SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK);

return 0;
}
#else

int
main(int argc, char *argv[])
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
exit(1);
return 1;
}

#endif

0 comments on commit 257ab5f

Please sign in to comment.