]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
quieten a compilation warning
authorMike Brady <mikebrady@eircom.net>
Mon, 3 Jun 2019 09:03:54 +0000 (10:03 +0100)
committerMike Brady <mikebrady@eircom.net>
Mon, 3 Jun 2019 09:03:54 +0000 (10:03 +0100)
audio_alsa.c

index a6de218c5e3176e8eaa4f8e6d43f7fe36f3a5a57..f24d02d1631f2e0a8f31e1f77b612c8851479e3e 100644 (file)
@@ -192,7 +192,9 @@ static void help(void) {
          "    -c mixer-control    set the mixer control name, default is to use no mixer.\n"
          "    -m mixer-device     set the mixer device, default is the output device.\n"
          "    -i mixer-index      set the mixer index, default is 0.\n");
-  system("if [ -d /proc/asound ] ; then echo \"    hardware output devices:\" ; ls -al /proc/asound/ 2>/dev/null | grep '\\->' | tr -s ' ' | cut -d ' ' -f 9 | while read line; do echo \"      \\\"hw:$line\\\"\" ; done ; fi");
+  int r = system("if [ -d /proc/asound ] ; then echo \"    hardware output devices:\" ; ls -al /proc/asound/ 2>/dev/null | grep '\\->' | tr -s ' ' | cut -d ' ' -f 9 | while read line; do echo \"      \\\"hw:$line\\\"\" ; done ; fi");
+  if (r != 0)
+    debug(2, "error %d executing a script to list alsa hardware device names", r);
 }
 
 void set_alsa_out_dev(char *dev) { alsa_out_dev = dev; }