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 42633712e5d1ec8
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
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Mon Jul 22 09:49:52 2002 +0000
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Fri Jul 26 17:13:17 2002 +0000
     1.3 @@ -409,9 +409,9 @@
     1.4  	int len;
     1.5  
     1.6  #ifdef USBHID_NEW
     1.7 -	len = hid_report_size(rd, repinfo[repind].kind, r->rid);
     1.8 +	len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
     1.9  #else
    1.10 -	len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
    1.11 +	len = hid_report_size(rd, repinfo[repind].kind, r->rid);
    1.12  #endif
    1.13  	if (len < 0) {
    1.14  		SDL_SetError("Negative HID report size");