patest_refresh_device_list: Fix unused args error in main() (use int main(void) as elsewhere). Use %lu to printf unsigned long connectionId (should fix compilation error on Mac).

This commit is contained in:
Ross Bencina 2016-09-18 19:20:58 +10:00
commit c2175e14f1

View file

@ -15,7 +15,7 @@ void printDevices()
assert( deviceInfo != 0 );
assert( deviceInfo->structVersion >= 3 ); /* should be the case if all APIs have implemented connectionId */
printf( "%d (conn id: %d) %s (%s)\n", i, deviceInfo->connectionId, deviceInfo->name, hostApiInfo->name );
printf( "%d (conn id: %lu) %s (%s)\n", i, deviceInfo->connectionId, deviceInfo->name, hostApiInfo->name );
}
}
@ -26,7 +26,8 @@ static void devicesChangedCallback(void* p)
printf( "Portaudio device list have changed!\n" );
}
int main(int argc, char* argv[])
int main(void);
int main(void)
{
Pa_Initialize();