]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Use strsignal()
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Sep 2005 13:42:18 +0000 (13:42 +0000)
committerTakashi Iwai <tiwai@suse.de>
Wed, 7 Sep 2005 13:42:18 +0000 (13:42 +0000)
Use strsignal() instead of sys_siglist[] (bug#1400).

alsamixer/alsamixer.c

index c861fcc8ee25a4cd7a848da3269cfdd8990eca1f..210040d67335c8321df7d604c22e78502b1b52d2 100644 (file)
  *     automated updates after select() (i always missed that with OSS!).
  */
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <unistd.h>
 #include <fcntl.h>
@@ -2205,7 +2206,7 @@ static void
 mixer_signal_handler (int signal)
 {
   if (signal != SIGSEGV)
-    mixer_abort (ERR_SIGNAL, sys_siglist[signal], 0);
+    mixer_abort (ERR_SIGNAL, strsignal(signal), 0);
   else
     {
       fprintf (stderr, "\nSegmentation fault.\n");