Commit ffbad3617c6139740adc112323a699a87dd47c92

Sam Lantinga 2022-08-28T16:21:05

Use the correct type for the device_instance

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c
index bca23c3..b95d6f0 100644
--- a/src/joystick/linux/SDL_sysjoystick.c
+++ b/src/joystick/linux/SDL_sysjoystick.c
@@ -102,7 +102,7 @@ static int MaybeRemoveDevice(const char *path);
 /* A linked list of available joysticks */
 typedef struct SDL_joylist_item
 {
-    int device_instance;
+    SDL_JoystickID device_instance;
     char *path;   /* "/dev/input/event2" or whatever */
     char *name;   /* "SideWinder 3D Pro" or whatever */
     SDL_JoystickGUID guid;