Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes
authorRyan C. Gordon <icculus@icculus.org>
Fri, 26 Jul 2002 17:13:17 +0000
changeset 426 33712e5d1ec8
parent 425 edbbe5775244
child 427 027ae30b867f
Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes trouble on OpenBSD?
src/joystick/bsd/SDL_sysjoystick.c
--- a/src/joystick/bsd/SDL_sysjoystick.c	Mon Jul 22 09:49:52 2002 +0000
+++ b/src/joystick/bsd/SDL_sysjoystick.c	Fri Jul 26 17:13:17 2002 +0000
@@ -409,9 +409,9 @@
 	int len;
 
 #ifdef USBHID_NEW
-	len = hid_report_size(rd, repinfo[repind].kind, r->rid);
+	len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
 #else
-	len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
+	len = hid_report_size(rd, repinfo[repind].kind, r->rid);
 #endif
 	if (len < 0) {
 		SDL_SetError("Negative HID report size");