src/joystick/android/SDL_sysjoystick.c
changeset 7191 75360622e65f
parent 7041 eb0b541c9722
child 7907 24b4e98c6010
child 8477 ad08f0d710f3
     1.1 --- a/src/joystick/android/SDL_sysjoystick.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/src/joystick/android/SDL_sysjoystick.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -87,10 +87,10 @@
     1.4          joystick->nballs = 0;
     1.5          joystick->naxes = 3;
     1.6          return 0;
     1.7 -	} else {
     1.8 -		SDL_SetError("No joystick available with that index");
     1.9 -		return (-1);
    1.10 -	}
    1.11 +    } else {
    1.12 +        SDL_SetError("No joystick available with that index");
    1.13 +        return (-1);
    1.14 +    }
    1.15  }
    1.16  
    1.17  /* Function to determine is this joystick is attached to the system right now */
    1.18 @@ -134,7 +134,7 @@
    1.19  SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
    1.20  {
    1.21      SDL_JoystickGUID guid;
    1.22 -    // the GUID is just the first 16 chars of the name for now
    1.23 +    /* the GUID is just the first 16 chars of the name for now */
    1.24      const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
    1.25      SDL_zero( guid );
    1.26      SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) );
    1.27 @@ -144,7 +144,7 @@
    1.28  SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
    1.29  {
    1.30      SDL_JoystickGUID guid;
    1.31 -    // the GUID is just the first 16 chars of the name for now
    1.32 +    /* the GUID is just the first 16 chars of the name for now */
    1.33      const char *name = joystick->name;
    1.34      SDL_zero( guid );
    1.35      SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) );