summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-11-03 00:51:41 +0000
committerjhb <jhb@FreeBSD.org>2000-11-03 00:51:41 +0000
commit33bdacce8c95705bf5fc4e9ee4031d3a75cf807a (patch)
tree20e637ef2926f492b4368ad1d126e86cd3dad223 /sys/net/bpf.c
parentc647c978508eb3321c6c40219e04ac49cf4f5040 (diff)
downloadFreeBSD-src-33bdacce8c95705bf5fc4e9ee4031d3a75cf807a.zip
FreeBSD-src-33bdacce8c95705bf5fc4e9ee4031d3a75cf807a.tar.gz
Fix an order of operations buglet. ! has higher precedence than &. This
should fix the warnings about bpf not calling make_dev().
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 6032f0b..341ee21 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -363,7 +363,7 @@ bpfopen(dev, flags, fmt, p)
*/
if (d)
return (EBUSY);
- if (!dev->si_flags & SI_NAMED)
+ if ((dev->si_flags & SI_NAMED) == 0)
make_dev(&bpf_cdevsw, minor(dev), UID_ROOT, GID_WHEEL, 0600,
"bpf%d", dev2unit(dev));
MALLOC(d, struct bpf_d *, sizeof(*d), M_BPF, M_WAITOK);
OpenPOWER on IntegriCloud