From c9e86ab3b9183ae96e8212791f3dfe64796676f9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 21 Jul 2010 15:57:37 -0400 Subject: [PATCH] The return value of strsignal() may be const and should be treated as const regardless. --- src/exec_pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec_pty.c b/src/exec_pty.c index c32604a6f..d73b005af 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -628,7 +628,7 @@ pty_close(struct command_status *cstat) if (cstat->type == CMD_WSTATUS && WIFSIGNALED(cstat->val)) { int signo = WTERMSIG(cstat->val); if (signo && signo != SIGINT && signo != SIGPIPE) { - char *reason = strsignal(signo); + const char *reason = strsignal(signo); n = io_fds[SFD_USERTTY] != -1 ? io_fds[SFD_USERTTY] : STDOUT_FILENO; write(n, reason, strlen(reason));