summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-11-04 16:13:43 +0100
committerTom Gundersen <teg@jklm.no>2014-11-05 16:54:22 +0100
commit7c63b23f499069b7bbdf5e74d3e7a622918341e9 (patch)
tree02db83d391a4eec2b5c9418ee0515e484f7da768
parent0c3f25e0c1f028d4da9cc5253abf0322230e6835 (diff)
shared: ptyfwd - make coverity happy
Explicitly ignore return value of ioctl to set window size. Fixes CID#1250804 and CID#1250800.
-rw-r--r--src/shared/ptyfwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c
index 7c6e182e5b..3f8853902a 100644
--- a/src/shared/ptyfwd.c
+++ b/src/shared/ptyfwd.c
@@ -280,7 +280,7 @@ static int on_sigwinch_event(sd_event_source *e, const struct signalfd_siginfo *
/* The window size changed, let's forward that. */
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) >= 0)
- ioctl(f->master, TIOCSWINSZ, &ws);
+ (void)ioctl(f->master, TIOCSWINSZ, &ws);
return 0;
}
@@ -317,7 +317,7 @@ int pty_forward_new(sd_event *event, int master, PTYForward **ret) {
f->master = master;
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) >= 0)
- ioctl(master, TIOCSWINSZ, &ws);
+ (void)ioctl(master, TIOCSWINSZ, &ws);
if (tcgetattr(STDIN_FILENO, &f->saved_stdin_attr) >= 0) {
struct termios raw_stdin_attr;