src/haptic/linux/SDL_syshaptic.c
changeset 4514 0c71708adbcb
parent 3680 7c18b38f0f9a
child 5535 96594ac5fd1a
equal deleted inserted replaced
4513:c5af44c1eea9 4514:0c71708adbcb
   252  * Opens the haptic device from the file descriptor.
   252  * Opens the haptic device from the file descriptor.
   253  */
   253  */
   254 static int
   254 static int
   255 SDL_SYS_HapticOpenFromFD(SDL_Haptic * haptic, int fd)
   255 SDL_SYS_HapticOpenFromFD(SDL_Haptic * haptic, int fd)
   256 {
   256 {
   257     const char *name;
       
   258 
       
   259     /* Allocate the hwdata */
   257     /* Allocate the hwdata */
   260     haptic->hwdata = (struct haptic_hwdata *)
   258     haptic->hwdata = (struct haptic_hwdata *)
   261         SDL_malloc(sizeof(*haptic->hwdata));
   259         SDL_malloc(sizeof(*haptic->hwdata));
   262     if (haptic->hwdata == NULL) {
   260     if (haptic->hwdata == NULL) {
   263         SDL_OutOfMemory();
   261         SDL_OutOfMemory();