summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/check_tcp.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2014-05-15 07:56:27 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2014-05-15 07:56:27 +0000
commitd05ca848b7328260324f9b6471e7152a21047bb2 (patch)
treeb79bece01cfdcf1cf0b0087356c0b05d6540a09d /usr.sbin/relayd/check_tcp.c
parentd579d3c1f6f4dc9d5e8a077e7b7db8c0e033fa93 (diff)
Use log_warn() to include errno if write() fails.
From thib
Diffstat (limited to 'usr.sbin/relayd/check_tcp.c')
-rw-r--r--usr.sbin/relayd/check_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/check_tcp.c b/usr.sbin/relayd/check_tcp.c
index 49f7bb4f58f..2ddc47f3f80 100644
--- a/usr.sbin/relayd/check_tcp.c
+++ b/usr.sbin/relayd/check_tcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: check_tcp.c,v 1.42 2011/06/17 14:36:51 jsg Exp $ */
+/* $OpenBSD: check_tcp.c,v 1.43 2014/05/15 07:56:26 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -211,7 +211,7 @@ tcp_send_req(int s, short event, void *arg)
if (bs == -1) {
if (errno == EAGAIN || errno == EINTR)
goto retry;
- log_warnx("%s: cannot send request", __func__);
+ log_warn("%s: cannot send request", __func__);
tcp_close(cte, HOST_DOWN);
hce_notify_done(cte->host, HCE_TCP_WRITE_FAIL);
return;