aboutsummaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-11-03 00:51:41 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-11-03 00:51:41 +0000
commitd1d74c2886e6311f66237ea4c7c7af30630e10b4 (patch)
tree7dea4f3212554295a9963aeb136a24308359db12 /sys/net/bpf.c
parent09aafe54025af2d6c2ef868bf74fe80bbcfed8a8 (diff)
downloadsrc-d1d74c2886e6311f66237ea4c7c7af30630e10b4.tar.gz
src-d1d74c2886e6311f66237ea4c7c7af30630e10b4.zip
Fix an order of operations buglet. ! has higher precedence than &. This
should fix the warnings about bpf not calling make_dev().
Notes
Notes: svn path=/head/; revision=68271
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 6032f0bc4786..341ee21efe00 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);