diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-25 08:44:06 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-25 08:44:06 +0100 |
commit | ce940e173167d0e8beb1a3f6974b1da43c78905c (patch) | |
tree | 0e54cb5f851e80cba384962fd20268c054aa2ac5 /fbtools.c | |
parent | d1779d07691ea722d5c39e010434c6f20405fcdc (diff) | |
download | fbida-ce940e173167d0e8beb1a3f6974b1da43c78905c.tar.gz |
use strsignal
Diffstat (limited to 'fbtools.c')
-rw-r--r-- | fbtools.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -23,6 +23,13 @@ #include "fbtools.h" +#ifndef HAVE_STRSIGNAL +static const char *strsignal(int signr) +{ + return sys_siglist[signr]; +} +#endif + /* -------------------------------------------------------------------- */ /* exported stuff */ @@ -519,6 +526,6 @@ fb_catch_exit_signals(void) /* cleanup */ fb_cleanup(); - fprintf(stderr,"Oops: %s\n",sys_siglist[termsig]); + fprintf(stderr,"Oops: %s\n",strsignal(termsig)); exit(42); } |