From f81d98d612f857c18abcde8adec601dca663a73f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 11 Aug 1998 18:44:11 +0000 Subject: Update. Old logs are in ChangeLog.7. 1998-08-11 18:39 Ulrich Drepper * string/strsignal.c (strsignal): Count real-time signals from zero. See ChangeLog.8 for earlier changes. --- string/strsignal.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'string') 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 -- cgit v1.2.3