Fix udev autoconf regression.

Stupid C89 for loops ...
This commit is contained in:
Themaister 2013-10-25 22:28:34 +02:00
parent 4db766926f
commit a91dbdaabc

View File

@ -436,7 +436,7 @@ static bool add_pad(unsigned p, int fd, const char *path)
pad->fd = fd;
pad->path = strdup(path);
if (*pad->ident)
input_config_autoconfigure_joypad(i, pad->ident, "udev");
input_config_autoconfigure_joypad(p, pad->ident, "udev");
// Check for rumble features.
unsigned long ffbit[NBITS(FF_MAX)] = {0};