Skip to content

Commit

Permalink
bsd: Patched to compile.
Browse files Browse the repository at this point in the history
(I think.)
  • Loading branch information
icculus committed Aug 10, 2018
1 parent 6776407 commit e1ac643
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/joystick/bsd/SDL_sysjoystick.c
Expand Up @@ -163,6 +163,9 @@ static void report_free(struct report *);

static int numjoysticks = 0;

static int BSD_JoystickOpen(SDL_Joystick * joy, int device_index);
static void BSD_JoystickClose(SDL_Joystick * joy);

static int
BSD_JoystickInit(void)
{
Expand Down Expand Up @@ -611,7 +614,7 @@ BSD_JoystickGetDeviceGUID( int device_index )
{
SDL_JoystickGUID guid;
/* the GUID is just the first 16 chars of the name for now */
const char *name = BSD_JoystickNameForDeviceIndex( device_index );
const char *name = BSD_JoystickGetDeviceName( device_index );
SDL_zero( guid );
SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) );
return guid;
Expand Down

0 comments on commit e1ac643

Please sign in to comment.