summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/bpf.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2017-06-19 19:28:35 +0000
committerkrw <krw@openbsd.org>2017-06-19 19:28:35 +0000
commit6bde396b279f007694869a66359960d2f8be7805 (patch)
treeebd8ff9292afbbef2a13eeca8d1fef8d8e95e592 /sbin/dhclient/bpf.c
parentmissing letter in previous; (diff)
downloadwireguard-openbsd-6bde396b279f007694869a66359960d2f8be7805.tar.xz
wireguard-openbsd-6bde396b279f007694869a66359960d2f8be7805.zip
Various KNF nits.
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r--sbin/dhclient/bpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c
index ffb7f1d5606..6da8a26f76c 100644
--- a/sbin/dhclient/bpf.c
+++ b/sbin/dhclient/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.52 2017/06/14 15:57:25 krw Exp $ */
+/* $OpenBSD: bpf.c,v 1.53 2017/06/19 19:28:35 krw Exp $ */
/* BPF socket interface code, originally contributed by Archie Cobbs. */
@@ -395,7 +395,7 @@ receive_packet(struct interface_info *ifi, struct sockaddr_in *from,
/* Decode the physical header. */
offset = decode_hw_header(ifi->rbuf + ifi->rbuf_offset,
- hdr.bh_caplen, hfrom);
+ hdr.bh_caplen, hfrom);
/*
* If a physical layer checksum failed (dunno of any
@@ -412,7 +412,7 @@ receive_packet(struct interface_info *ifi, struct sockaddr_in *from,
/* Decode the IP and UDP headers. */
offset = decode_udp_ip_header(ifi->rbuf + ifi->rbuf_offset,
- hdr.bh_caplen, from);
+ hdr.bh_caplen, from);
/* If the IP or UDP checksum was bad, skip the packet. */
if (offset < 0) {