Skip to content

Commit

Permalink
Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes
Browse files Browse the repository at this point in the history
 trouble on OpenBSD?
  • Loading branch information
icculus committed Jul 26, 2002
1 parent 731c830 commit 1552aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/bsd/SDL_sysjoystick.c
Expand Up @@ -409,9 +409,9 @@ report_alloc(struct report *r, struct report_desc *rd, int repind)
int len;

#ifdef USBHID_NEW
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
#else
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
#else
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
#endif
if (len < 0) {
SDL_SetError("Negative HID report size");
Expand Down

0 comments on commit 1552aef

Please sign in to comment.