]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Declare all functions static that are not callbacks and not in audio_jack API struct.
authorJörn Nettingsmeier <nettings@luchtbeweging.nl>
Fri, 15 Feb 2019 18:39:20 +0000 (18:39 +0000)
committerJörn Nettingsmeier <nettings@luchtbeweging.nl>
Fri, 15 Feb 2019 18:39:20 +0000 (18:39 +0000)
If there are any calls from the outside I haven't thought of, that should make them fail.

audio_jack.c

index f5aa7cea54bea9cce1f0a6b21a974cc94916f8a5..7bd513b0e23677e5732b6eb037fc3daecf558611 100644 (file)
@@ -200,7 +200,7 @@ int jack_is_running() {
   return reply;
 }
 
-int jack_client_open_if_needed(void) {
+static int jack_client_open_if_needed(void) {
   pthread_mutex_lock(&client_mutex);
   if (client_is_open == 0) {
     jack_status_t status;
@@ -231,7 +231,7 @@ int jack_client_open_if_needed(void) {
   return client_is_open;
 }
 
-void jack_close(void) {
+static void jack_close(void) {
   pthread_mutex_lock(&client_mutex);
   if (client_is_open) {
     if (jack_deactivate(client))
@@ -254,7 +254,7 @@ void jack_deinit() {
   }
 }
 
-void *open_client_if_necessary_thread_function(void *arg) {
+static void *open_client_if_necessary_thread_function(void *arg) {
   int *interval = (int *)arg;
   while (*interval != 0) {
     if (client_is_open == 0) {