From 71f2e6f41fd44507fade469e748fff19877acdd2 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Tue, 30 Jan 2007 23:13:04 +0000 Subject: [PATCH] * strsignal.c (psignal): Change type of signo to int. * functions.texi: Regenerate. --- libiberty/ChangeLog | 5 +++++ libiberty/functions.texi | 2 +- libiberty/strsignal.c | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 608d4300ef..b42687f649 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2007-01-31 Ben Elliston + + * strsignal.c (psignal): Change type of signo to int. + * functions.texi: Regenerate. + 2007-01-12 Ben Elliston * pex-unix.c (writeerr): Cast write result to void. diff --git a/libiberty/functions.texi b/libiberty/functions.texi index 68c064817d..45dcd4c086 100644 --- a/libiberty/functions.texi +++ b/libiberty/functions.texi @@ -948,7 +948,7 @@ documented. @end deftypefn @c strsignal.c:539 -@deftypefn Supplemental void psignal (unsigned @var{signo}, char *@var{message}) +@deftypefn Supplemental void psignal (int @var{signo}, char *@var{message}) Print @var{message} to the standard error, followed by a colon, followed by the description of the signal specified by @var{signo}, diff --git a/libiberty/strsignal.c b/libiberty/strsignal.c index c3a16ab9bd..4ca9e21d11 100644 --- a/libiberty/strsignal.c +++ b/libiberty/strsignal.c @@ -9,7 +9,7 @@ /* We need to declare sys_siglist, because even if the system provides it we can't assume that it is declared in (for example, SunOS provides sys_siglist, but it does not declare it in any - header file). fHowever, we can't declare sys_siglist portably, + header file). However, we can't declare sys_siglist portably, because on some systems it is declared with const and on some systems it is declared without const. If we were using autoconf, we could work out the right declaration. Until, then we just @@ -536,7 +536,7 @@ strtosigno (const char *name) /* -@deftypefn Supplemental void psignal (unsigned @var{signo}, char *@var{message}) +@deftypefn Supplemental void psignal (int @var{signo}, char *@var{message}) Print @var{message} to the standard error, followed by a colon, followed by the description of the signal specified by @var{signo}, @@ -549,7 +549,7 @@ followed by a newline. #ifndef HAVE_PSIGNAL void -psignal (unsigned signo, char *message) +psignal (int signo, char *message) { if (signal_names == NULL) { -- 2.34.1