diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-05-16 12:32:29 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-05-16 12:32:29 +0200 |
commit | dbee308253931f8c1aeebf781d7e7730ff6a0dc1 (patch) | |
tree | a0b6552908f7b44431bcd70668eda863eaf97be2 /log.c | |
parent | - jmc@cvs.openbsd.org 2013/05/16 06:30:06 (diff) | |
download | openssh-dbee308253931f8c1aeebf781d7e7730ff6a0dc1.tar.xz openssh-dbee308253931f8c1aeebf781d7e7730ff6a0dc1.zip |
- 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 'log.c')
-rw-r--r-- | log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.44 2013/04/07 02:10:33 dtucker Exp $ */ +/* $OpenBSD: log.c,v 1.45 2013/05/16 09:08:41 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -445,7 +445,7 @@ do_log(LogLevel level, const char *fmt, va_list args) log_handler = tmp_handler; } else if (log_on_stderr) { snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf); - write(log_stderr_fd, msgbuf, strlen(msgbuf)); + (void)write(log_stderr_fd, msgbuf, strlen(msgbuf)); } else { #if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT) openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); |