diff options
author | Matt Johnston <matt@ucc.asn.au> | 2016-03-15 23:03:43 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-15 23:03:43 +0800 |
commit | b36391dfcfd5c2910a9c3dfd24bdc55746114fde (patch) | |
tree | d46d5ed726dfc83a6c5fd531fa792575b767205a | |
parent | 125aea43b27b4223ec4ef8ebffc9bc6e07bd5c18 (diff) | |
download | dropbear-b36391dfcfd5c2910a9c3dfd24bdc55746114fde.tar.gz |
ignore return value from fcntl()
-rw-r--r-- | cli-session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli-session.c b/cli-session.c index a93d192..31c9f02 100644 --- a/cli-session.c +++ b/cli-session.c @@ -361,9 +361,10 @@ static void cli_session_cleanup(void) { /* Set std{in,out,err} back to non-blocking - busybox ash dies nastily if * we don't revert the flags */ - fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags); - fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags); - fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags); + /* Ignore return value since there's nothing we can do */ + (void)fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags); + (void)fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags); + (void)fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags); cli_tty_cleanup(); |