diff options
Diffstat (limited to 'string/strsignal.c')
-rw-r--r-- | string/strsignal.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/string/strsignal.c b/string/strsignal.c index 673706e..90480f5 100644 --- a/string/strsignal.c +++ b/string/strsignal.c @@ -60,12 +60,15 @@ strsignal (int signum) signum < 0 || signum >= NSIG || (desc = _sys_siglist[signum]) == NULL) { char *buffer = getbuffer (); - int len = __snprintf (buffer, BUFFERSIZ - 1, + int len; #ifdef SIGRTMIN - signum >= SIGRTMIN && signum <= SIGRTMAX - ? _("Real-time signal %d") : + if (signum >= SIGRTMIN && signum <= SIGRTMAX) + len = __snprintf (buffer, BUFFERSIZ - 1, _("Real-time signal %d"), + signum - SIGRTMIN); + else #endif - _("Unknown signal %d"), signum); + len = __snprintf (buffer, BUFFERSIZ - 1, _("Unknown signal %d"), + signum); if (len < 0) buffer = NULL; else |