From fe817eb1a32305211d7aba8832cd974b2671b69b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 17 May 2011 16:14:52 +0000 Subject: [PATCH] * strsignal.c (psignal): Change second parameter to const char *. Fix comment accordingly. --- libiberty/ChangeLog | 5 +++++ libiberty/strsignal.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 0e88ea3..855333e 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2011-05-17 Corinna Vinschen + + * strsignal.c (psignal): Change second parameter to const char *. + Fix comment accordingly. + 2011-04-20 Jim Meyering * cp-demint.c (cplus_demangle_v3_components): Remove useless diff --git a/libiberty/strsignal.c b/libiberty/strsignal.c index 666b1b4..3b56d16 100644 --- a/libiberty/strsignal.c +++ b/libiberty/strsignal.c @@ -538,7 +538,7 @@ strtosigno (const char *name) /* -@deftypefn Supplemental void psignal (int @var{signo}, char *@var{message}) +@deftypefn Supplemental void psignal (int @var{signo}, const 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}, @@ -551,7 +551,7 @@ followed by a newline. #ifndef HAVE_PSIGNAL void -psignal (int signo, char *message) +psignal (int signo, const char *message) { if (signal_names == NULL) { -- 2.7.4