comparison src/haptic/linux/SDL_syshaptic.c @ 4514:0c71708adbcb

Fixed compile warning
author Sam Lantinga <slouken@libsdl.org>
date Tue, 13 Jul 2010 22:25:30 -0700
parents 7c18b38f0f9a
children
comparison
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();