summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-05-16 20:32:29 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-05-16 20:32:29 +1000
commitdbee308253931f8c1aeebf781d7e7730ff6a0dc1 (patch)
treea0b6552908f7b44431bcd70668eda863eaf97be2 /sftp.c
parent64d22946d664dad8165f1fae9e78b53831ed728d (diff)
- dtucker@cvs.openbsd.org 2013/05/16 09:08:41
[log.c scp.c sshd.c serverloop.c schnorr.c sftp.c] Fix some "unused result" warnings found via clang and -portable. ok markus@
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index 24396ef3c..12c4958d9 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.143 2013/04/18 02:16:07 djm Exp $ */ 1/* $OpenBSD: sftp.c,v 1.144 2013/05/16 09:08:41 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -218,7 +218,7 @@ cmd_interrupt(int signo)
218 const char msg[] = "\rInterrupt \n"; 218 const char msg[] = "\rInterrupt \n";
219 int olderrno = errno; 219 int olderrno = errno;
220 220
221 write(STDERR_FILENO, msg, sizeof(msg) - 1); 221 (void)write(STDERR_FILENO, msg, sizeof(msg) - 1);
222 interrupted = 1; 222 interrupted = 1;
223 errno = olderrno; 223 errno = olderrno;
224} 224}