diff options
author | 2017-07-14 16:21:03 +0000 | |
---|---|---|
committer | 2017-07-14 16:21:03 +0000 | |
commit | 6fe46e93134c57f3a8fb069673693ba2a4a9ef39 (patch) | |
tree | 4f52ce09fac96c50f9b313436ac2710dc0968fdd /sbin/dhclient/bpf.c | |
parent | Handle .Bl -compact via CSS rather than writing individual style (diff) | |
download | wireguard-openbsd-6fe46e93134c57f3a8fb069673693ba2a4a9ef39.tar.xz wireguard-openbsd-6fe46e93134c57f3a8fb069673693ba2a4a9ef39.zip |
Replace remaining "!var" expressions with
"<var> == 0", "!(<var> & FLAG)" with
"(<var> & FLAG) == 0", "!<func()>"
with "<func()> == 0" and "!<define>" with
"<define> == 0". And the positive cases
as well.
A few stray == NULL and != NULL as well.
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c index e7aca6f1662..5bcfdd02e0e 100644 --- a/sbin/dhclient/bpf.c +++ b/sbin/dhclient/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.60 2017/07/10 17:13:24 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.61 2017/07/14 16:21:03 krw Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -428,6 +428,6 @@ receive_packet(struct interface_info *ifi, struct sockaddr_in *from, ifi->rbuf_offset = BPF_WORDALIGN(ifi->rbuf_offset + hdr.bh_caplen); return hdr.bh_caplen ; - } while (!length); + } while (length == 0); return 0 ; } |