From: Jörn Nettingsmeier Date: Fri, 15 Feb 2019 18:39:20 +0000 (+0000) Subject: Declare all functions static that are not callbacks and not in audio_jack API struct. X-Git-Tag: 3.3RC0~52^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9520e891836eaeaed41127a1601980e4a72a0d28;p=thirdparty%2Fshairport-sync.git Declare all functions static that are not callbacks and not in audio_jack API struct. If there are any calls from the outside I haven't thought of, that should make them fail. --- diff --git a/audio_jack.c b/audio_jack.c index f5aa7cea..7bd513b0 100644 --- a/audio_jack.c +++ b/audio_jack.c @@ -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) {