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:
parent
b95f3bd6a2
commit
c2175e14f1
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue