diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c index b1194f21a..886de97aa 100644 --- a/src/core/linux/SDL_evdev.c +++ b/src/core/linux/SDL_evdev.c @@ -150,7 +150,7 @@ static const char* EVDEV_consoles[] = { }; static int SDL_EVDEV_is_console(int fd) { - int type; + char type; return isatty(fd) && ioctl(fd, KDGKBTYPE, &type) == 0 && (type == KB_101 || type == KB_84);