projects
/
sudo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b743e
)
The return value of strsignal() may be const and should be treated
author
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 21 Jul 2010 19:57:21 +0000
(15:57 -0400)
committer
Todd C. Miller
<Todd.Miller@courtesan.com>
Wed, 21 Jul 2010 19:57:21 +0000
(15:57 -0400)
as const regardless.
--HG--
branch : 1.7
exec_pty.c
patch
|
blob
|
history
diff --git
a/exec_pty.c
b/exec_pty.c
index da79664ac214f50a4bef5dbd09dba01d13527c72..af034d56624598e836154481a07a82fa036bd476 100644
(file)
--- 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);
+ c
onst c
har *reason = strsignal(signo);
n = io_fds[SFD_USERTTY] != -1 ?
io_fds[SFD_USERTTY] : STDOUT_FILENO;
write(n, reason, strlen(reason));