summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/builtin.c2
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 {