summaryrefslogtreecommitdiff
path: root/alsamixer
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-09-07 13:42:18 +0000
committerTakashi Iwai <tiwai@suse.de>2005-09-07 13:42:18 +0000
commit0c4dfcaa97ff8db5265569afc6a80fbde29d51e8 (patch)
tree5c000e2d90c1546f82abb77d0e0b1cd002e37190 /alsamixer
parent87ffccedfd85687dae1a1635553949f3870bdb09 (diff)
Use strsignal()
Use strsignal() instead of sys_siglist[] (bug#1400).
Diffstat (limited to 'alsamixer')
-rw-r--r--alsamixer/alsamixer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c
index c861fcc..210040d 100644
--- a/alsamixer/alsamixer.c
+++ b/alsamixer/alsamixer.c
@@ -100,6 +100,7 @@
* 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");