Another problem with joystick handling under bsd *sigh* ( + fix )

Hi

On compiling SDL CVS (15.6) under FreeBSD 4.6 i get the following errors :

SDL_sysjoystick.c: In function report_alloc': SDL_sysjoystick.c:414: incompatible type for argument 3 ofhid_report_size’
*** Error code 1

Stop in /usr/src/SDL-1.2/src/joystick/bsd.
*** Error code 1

Stop in /usr/src/SDL-1.2/src/joystick.
*** Error code 1

Stop in /usr/src/SDL-1.2/src.
*** Error code 1

Stop in /usr/src/SDL-1.2.

However, changing line 414 from
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
to
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
works… ( so the whole #ifdef block wouldn’t be needed anymore ).
This works also well under NetBSD. Are there any OpenBSD-guys who could test this ?. diff for /src/joystick/BSD/SDL_sysjoystick.c is attached.

regards, robert

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_sysjoystick.diff
Type: application/octet-stream
Size: 118 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020617/80f193ee/attachment.obj