summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcrelay
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-02-13 21:57:31 +0000
committerkrw <krw@openbsd.org>2017-02-13 21:57:31 +0000
commit88f6d33ef20d186682247f4cea6ff30d6da4e361 (patch)
tree0c199bf4a1c330134f7247e6a21c2b7109258633 /usr.sbin/dhcrelay
parentDo the strerror() elimination dance with log_warnx() -> log_warn(), (diff)
downloadwireguard-openbsd-88f6d33ef20d186682247f4cea6ff30d6da4e361.tar.xz
wireguard-openbsd-88f6d33ef20d186682247f4cea6ff30d6da4e361.zip
Do the strerror() elimination dance with a log_warnx() -> log_warn().
Diffstat (limited to 'usr.sbin/dhcrelay')
-rw-r--r--usr.sbin/dhcrelay/dispatch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/dhcrelay/dispatch.c b/usr.sbin/dhcrelay/dispatch.c
index 98b2226d0dd..f06e1028157 100644
--- a/usr.sbin/dhcrelay/dispatch.c
+++ b/usr.sbin/dhcrelay/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.16 2017/02/13 19:15:39 krw Exp $ */
+/* $OpenBSD: dispatch.c,v 1.17 2017/02/13 21:57:31 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -276,8 +276,7 @@ got_one(struct protocol *l)
memset(&pc, 0, sizeof(pc));
if ((result = receive_packet(ip, u.packbuf, sizeof(u), &pc)) == -1) {
- log_warnx("receive_packet failed on %s: %s", ip->name,
- strerror(errno));
+ log_warn("receive_packet failed on %s", ip->name);
ip->errors++;
if ((!interface_status(ip)) ||
(ip->noifmedia && ip->errors > 20)) {