fix syntax for non-C99 mode
This commit is contained in:
@@ -295,9 +295,10 @@ void test(struct wiimote_t* wm, byte* data, unsigned short len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
short any_wiimote_connected(wiimote** wm, int wiimotes) {
|
short any_wiimote_connected(wiimote** wm, int wiimotes) {
|
||||||
|
int i;
|
||||||
if(!wm) return 0;
|
if(!wm) return 0;
|
||||||
|
|
||||||
for(int i = 0; i < wiimotes; i++) {
|
for(i = 0; i < wiimotes; i++) {
|
||||||
if(wm[i] && WIIMOTE_IS_CONNECTED(wm[i]))
|
if(wm[i] && WIIMOTE_IS_CONNECTED(wm[i]))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,8 @@
|
|||||||
|
|
||||||
// read found device information
|
// read found device information
|
||||||
NSArray* devices = [inquiry foundDevices];
|
NSArray* devices = [inquiry foundDevices];
|
||||||
for(NSUInteger i = 0; i < [devices count]; i++) {
|
NSUInteger i;
|
||||||
|
for(i = 0; i < [devices count]; i++) {
|
||||||
IOBluetoothDevice* device = [devices objectAtIndex:i];
|
IOBluetoothDevice* device = [devices objectAtIndex:i];
|
||||||
|
|
||||||
// save the device in the wiimote structure
|
// save the device in the wiimote structure
|
||||||
|
|||||||
Reference in New Issue
Block a user