Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged r5547:5548 from branches/SDL-1.2: FreeBSD joystick uninit'd va…
Browse files Browse the repository at this point in the history
…r fix.
  • Loading branch information
icculus committed Feb 5, 2010
1 parent 9df1519 commit 8ea9878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/bsd/SDL_sysjoystick.c
Expand Up @@ -307,11 +307,11 @@ SDL_SYS_JoystickOpen(SDL_Joystick * joy)
strerror(errno));
goto usberr;
}
rep = &hw->inreport;
#if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063)
rep->rid = hid_get_report_id(fd);
if (rep->rid < 0) {
#else
rep = &hw->inreport;
if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) {
#endif
rep->rid = -1; /* XXX */
Expand Down

0 comments on commit 8ea9878

Please sign in to comment.