Fix an order of operations buglet. ! has higher precedence than &. This

should fix the warnings about bpf not calling make_dev().
This commit is contained in:
John Baldwin 2000-11-03 00:51:41 +00:00
parent 09aafe5402
commit d1d74c2886

View File

@ -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);