]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
stop linker errors if built alongside audio_pa
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 30 Sep 2023 16:25:42 +0000 (17:25 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 30 Sep 2023 16:25:42 +0000 (17:25 +0100)
audio_pa.c

index bd13cfefd5d057c4f598093702c93412abec7bfb..2880d4efeec48673ceffc468aa8a5e679397398f 100644 (file)
@@ -49,9 +49,9 @@ pa_threaded_mainloop *mainloop;
 pa_mainloop_api *mainloop_api;
 pa_context *context;
 pa_stream *stream;
-char *audio_lmb, *audio_umb, *audio_toq, *audio_eoq;
-size_t audio_size = buffer_allocation;
-size_t audio_occupancy;
+static char *audio_lmb, *audio_umb, *audio_toq, *audio_eoq;
+static size_t audio_size = buffer_allocation;
+static size_t audio_occupancy;
 
 void context_state_cb(pa_context *context, void *mainloop);
 void stream_state_cb(pa_stream *s, void *mainloop);
@@ -308,7 +308,7 @@ int pa_delay(long *the_delay) {
   return reply;
 }
 
-void flush(void) {
+static void flush(void) {
   check_pa_stream_status(stream, "audio_pa flush.");
   pa_threaded_mainloop_lock(mainloop);
   if (pa_stream_is_corked(stream) == 0) {