pa_mac_core_utilities: add void to empty function argument list (#355)

Insert "void" in the argument list to turn initializeXRunListenerList and destroyXRunListenerList declarations into valid prototypes. Also update the function definitions to match. Thanks to Paul Boersma.
This commit is contained in:
Ross Bencina 2020-11-26 13:46:05 +11:00 committed by GitHub
commit 521209c633
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -641,13 +641,13 @@ OSStatus xrunCallback(
return 0;
}
int initializeXRunListenerList()
int initializeXRunListenerList( void )
{
xRunListSize = 0;
bzero( (void *) &firstXRunListNode, sizeof(firstXRunListNode) );
return pthread_mutex_init( &xrunMutex, NULL );
}
int destroyXRunListenerList()
int destroyXRunListenerList( void )
{
PaMacXRunListNode *node;
node = firstXRunListNode.next;

View file

@ -206,9 +206,9 @@ OSStatus xrunCallback(
void* inClientData ) ;
/** returns zero on success or a unix style error code. */
int initializeXRunListenerList();
int initializeXRunListenerList( void );
/** returns zero on success or a unix style error code. */
int destroyXRunListenerList();
int destroyXRunListenerList( void );
/**Returns the list, so that it can be passed to CorAudio.*/
void *addToXRunListenerList( void *stream );