From: Mike Brady Date: Mon, 3 Jun 2019 09:03:54 +0000 (+0100) Subject: quieten a compilation warning X-Git-Tag: 3.3.1rc1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bafe1c982e33392e72e16068c1005b3c6c5fe07;p=thirdparty%2Fshairport-sync.git quieten a compilation warning --- diff --git a/audio_alsa.c b/audio_alsa.c index a6de218c..f24d02d1 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -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; }