From 705e5bb5e448f401ee54e64bfd9a3b9f82b2d64d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 21 Jul 2010 15:57:21 -0400 Subject: [PATCH] The return value of strsignal() may be const and should be treated as const regardless. --HG-- branch : 1.7 --- exec_pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec_pty.c b/exec_pty.c index da79664ac..af034d566 100644 --- a/exec_pty.c +++ b/exec_pty.c @@ -514,7 +514,7 @@ pty_close(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)); -- 2.40.0