mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Revert my previous two changes.
Even though the code seems to be FreeBSD kernel code, it isn't compiled on FreeBSD. I could have known this, because I was a little amazed that I couldn't find a prototype of pfopen()/pfclose() somewhere else, because it isn't marked as static. Apart from that, removing these functions wouldn't have been harmful anyway, because there are some other strange things about them (the implementation isn't consistent with the prototype at the top). Still, it's better to leave it, because it makes merging code back to older branches a little harder. Requested by: mlaier
This commit is contained in:
parent
014bf1f6e5
commit
55b043392b
1 changed files with 16 additions and 0 deletions
|
|
@ -477,6 +477,22 @@ pf_thread_create(void *v)
|
|||
if (kproc_create(pf_purge_thread, NULL, NULL, "pfpurge"))
|
||||
panic("pfpurge thread");
|
||||
}
|
||||
|
||||
int
|
||||
pfopen(struct cdev *dev, int flags, int fmt, struct proc *p)
|
||||
{
|
||||
if (dev2unit(dev) >= 1)
|
||||
return (ENXIO);
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
pfclose(struct cdev *dev, int flags, int fmt, struct proc *p)
|
||||
{
|
||||
if (dev2unit(dev) >= 1)
|
||||
return (ENXIO);
|
||||
return (0);
|
||||
}
|
||||
#endif /* __FreeBSD__ */
|
||||
|
||||
struct pf_pool *
|
||||
|
|
|
|||
Loading…
Reference in a new issue