X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fin_gp2x.c;h=37abeaf17824fd889a5b02a7238de775b07e3feb;hb=8796b7ee88b83c54bd09c0087e023dfac5df3e08;hp=818aead94c7392d91f999566e81c0ebea05c487b;hpb=21ecaf237fe6abc22272ab2cbe2724a69bc3bc8b;p=picodrive.git diff --git a/platform/gp2x/in_gp2x.c b/platform/gp2x/in_gp2x.c index 818aead..37abeaf 100644 --- a/platform/gp2x/in_gp2x.c +++ b/platform/gp2x/in_gp2x.c @@ -55,8 +55,8 @@ static int in_gp2x_get_mmsp2_bits(void) static int in_gp2x_get_wiz_bits(void) { - int value = 0; - read(gpiodev, &value, 4); + int r, value = 0; + r = read(gpiodev, &value, 4); if (value & 0x02) value |= 0x05; if (value & 0x08)