src/joystick/bsd/SDL_sysjoystick.c
branchSDL-1.2
changeset 4401 1a7b62893c9d
parent 4323 b3171b7561d8
child 4540 e978b888d87a
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Sun Jan 24 20:08:14 2010 +0000
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Fri Feb 05 19:20:49 2010 +0000
     1.3 @@ -303,11 +303,11 @@
     1.4  		    strerror(errno));
     1.5  		goto usberr;
     1.6  	}
     1.7 +	rep = &hw->inreport;
     1.8  #if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063)
     1.9         rep->rid = hid_get_report_id(fd);
    1.10         if (rep->rid < 0) {
    1.11  #else
    1.12 -	rep = &hw->inreport;
    1.13  	if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) {
    1.14  #endif
    1.15  		rep->rid = -1; /* XXX */