diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-02-13 21:57:32 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-02-13 21:57:32 +0000 |
commit | b96d0c66d1d0238a251ec30a313cd3bf82df0a34 (patch) | |
tree | 331c3579344e46f40b9f4b0bff3d06d7d8d71360 | |
parent | f353601f76547b08e9491eee728a0b3b8e3c56c1 (diff) |
Do the strerror() elimination dance with a log_warnx() -> log_warn().
-rw-r--r-- | usr.sbin/dhcrelay/dispatch.c | 5 |
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)) { |