1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68271

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