(udev_joypad.c) More style nits

This commit is contained in:
twinaphex 2015-06-03 18:39:52 +02:00
parent 23e2dfafd3
commit c24a5de3a8

View File

@ -206,12 +206,13 @@ static bool udev_add_pad(struct udev_device *dev, unsigned p, int fd, const char
int i; int i;
const char *buf; const char *buf;
struct stat st; struct stat st;
unsigned buttons = 0;
unsigned axes = 0;
struct udev_device *parent = NULL; struct udev_device *parent = NULL;
struct udev_joypad *pad = (struct udev_joypad*)&udev_pads[p]; struct udev_joypad *pad = (struct udev_joypad*)&udev_pads[p];
unsigned long keybit[NBITS(KEY_MAX)] = {0}; unsigned long keybit[NBITS(KEY_MAX)] = {0};
unsigned long absbit[NBITS(ABS_MAX)] = {0}; unsigned long absbit[NBITS(ABS_MAX)] = {0};
unsigned long ffbit[NBITS(FF_MAX)] = {0}; unsigned long ffbit[NBITS(FF_MAX)] = {0};
unsigned buttons = 0, axes = 0;
autoconfig_params_t params = {{0}}; autoconfig_params_t params = {{0}};
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();