diff options
| author | Corinna Vinschen <corinna@vinschen.de> | 2011-05-17 16:14:52 +0000 |
|---|---|---|
| committer | Corinna Vinschen <corinna@vinschen.de> | 2011-05-17 16:14:52 +0000 |
| commit | d6a192352a2e4f44ad474f8499947184831dc80c (patch) | |
| tree | bda2d37d87f210ee463f2b626a3bdc6132450122 | |
| parent | 2cf5d842706a6dcb51bee5982db0d4c46343c2a9 (diff) | |
| download | binutils-redhat-d6a192352a2e4f44ad474f8499947184831dc80c.tar.gz | |
* strsignal.c (psignal): Change second parameter to const char *.
Fix comment accordingly.
| -rw-r--r-- | libiberty/ChangeLog | 5 | ||||
| -rw-r--r-- | libiberty/strsignal.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 0e88ea3cc9..855333e802 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2011-05-17 Corinna Vinschen <vinschen@redhat.com> + + * strsignal.c (psignal): Change second parameter to const char *. + Fix comment accordingly. + 2011-04-20 Jim Meyering <meyering@redhat.com> * cp-demint.c (cplus_demangle_v3_components): Remove useless diff --git a/libiberty/strsignal.c b/libiberty/strsignal.c index 666b1b4f15..3b56d16988 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) { |
