diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-08-11 18:44:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-08-11 18:44:11 +0000 |
commit | f81d98d612f857c18abcde8adec601dca663a73f (patch) | |
tree | a0f310cf47d4b782bcd8cb085d9c05267cbcc477 /string | |
parent | a2bde807bfaff3c016183a02a1f6a46764480410 (diff) | |
download | glibc-f81d98d612f857c18abcde8adec601dca663a73f.tar glibc-f81d98d612f857c18abcde8adec601dca663a73f.tar.gz glibc-f81d98d612f857c18abcde8adec601dca663a73f.tar.bz2 glibc-f81d98d612f857c18abcde8adec601dca663a73f.zip |
Update. Old logs are in ChangeLog.7.
1998-08-11 18:39 Ulrich Drepper <drepper@cygnus.com>
* string/strsignal.c (strsignal): Count real-time signals from zero.
See ChangeLog.8 for earlier changes.
Diffstat (limited to 'string')
-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 673706e538..90480f5d4a 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 |