port to 64bit. Some gcc 4.4 warning fixes
[libpicofe.git] / gp2x / in_gp2x.c
index 818aead..37abeaf 100644 (file)
@@ -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)