diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-06-01 13:59:14 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-06-01 13:59:14 +0000 |
commit | b4855d742c1b9071197679e8495f6525d0a5d316 (patch) | |
tree | c7968e5e34db30ac70e324ad73698b9ccd32cf92 | |
parent | 772007e76c430588b0b0a234e4db90e5ad50293d (diff) | |
download | zsh-b4855d742c1b9071197679e8495f6525d0a5d316.tar.gz zsh-b4855d742c1b9071197679e8495f6525d0a5d316.tar.xz zsh-b4855d742c1b9071197679e8495f6525d0a5d316.zip |
unposted: need const for result of getsigname()
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Src/builtin.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 3d03b8cb6..e1ff64307 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-06-01 Peter Stephenson <pws@csr.com> + * unposted: Src/builtin.c: need const for result of getsigname(). + * 21296: Doc/Zsh/builtins.yo [this hunk missing from post], Doc/Zsh/func.yo, Src/builtin.c, Src/jobs.c, Src/zsh.h: Allow ERR signal as alias for ZERR on systems that don't diff --git a/Src/builtin.c b/Src/builtin.c index 69d78c926..6bec738f4 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4978,7 +4978,7 @@ bin_trap(char *name, char **argv, UNUSED(Options ops), UNUSED(int func)) shfunctab->printnode(hn, 0); DPUTS(!hn, "BUG: I did not find any trap functions!"); } else if (sigtrapped[sig]) { - char *name = getsigname(sig); + const char *name = getsigname(sig); if (!siglists[sig]) printf("trap -- '' %s\n", name); else { |