indent
authorSam Lantinga <slouken@libsdl.org>
Sun, 15 Jul 2007 21:53:51 +0000
changeset 22016280c111ee80
parent 2200 893c862eed86
child 2202 98e76ba7d5a4
indent
test/testjoystick.c
     1.1 --- a/test/testjoystick.c	Sun Jul 15 17:25:59 2007 +0000
     1.2 +++ b/test/testjoystick.c	Sun Jul 15 21:53:51 2007 +0000
     1.3 @@ -157,10 +157,11 @@
     1.4      printf("There are %d joysticks attached\n", SDL_NumJoysticks());
     1.5      for (i = 0; i < SDL_NumJoysticks(); ++i) {
     1.6          name = SDL_JoystickName(i);
     1.7 -        printf("Joystick %d: %s\n",i,name ? name : "Unknown Joystick");
     1.8 +        printf("Joystick %d: %s\n", i, name ? name : "Unknown Joystick");
     1.9          joystick = SDL_JoystickOpen(i);
    1.10          if (joystick == NULL) {
    1.11 -            fprintf(stderr, "SDL_JoystickOpen(%d) failed: %s\n", i, SDL_GetError());
    1.12 +            fprintf(stderr, "SDL_JoystickOpen(%d) failed: %s\n", i,
    1.13 +                    SDL_GetError());
    1.14          } else {
    1.15              printf("       axes: %d\n", SDL_JoystickNumAxes(joystick));
    1.16              printf("      balls: %d\n", SDL_JoystickNumBalls(joystick));