summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-03-14 01:26:25 +0000
committermillert <millert@openbsd.org>2002-03-14 01:26:25 +0000
commitc4071fd13883b3f74b90a411bbb39755a785aeaa (patch)
tree241e7c760222fac909b512d36156c6db1b610256 /sys/net/bpf.c
parentcompare pointers with NULL not 0 (diff)
downloadwireguard-openbsd-c4071fd13883b3f74b90a411bbb39755a785aeaa.tar.xz
wireguard-openbsd-c4071fd13883b3f74b90a411bbb39755a785aeaa.zip
First round of __P removal in sys
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 7d44697c2b3..24967d48e31 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.30 2001/10/02 18:04:35 deraadt Exp $ */
+/* $OpenBSD: bpf.c,v 1.31 2002/03/14 01:27:09 millert Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
@@ -79,19 +79,19 @@ struct bpf_if *bpf_iflist;
struct bpf_d *bpf_dtab;
int nbpfilter;
-int bpf_allocbufs __P((struct bpf_d *));
-void bpf_freed __P((struct bpf_d *));
-void bpf_ifname __P((struct ifnet *, struct ifreq *));
-void bpf_mcopy __P((const void *, void *, size_t));
-int bpf_movein __P((struct uio *, int, struct mbuf **, struct sockaddr *));
-void bpf_attachd __P((struct bpf_d *, struct bpf_if *));
-void bpf_detachd __P((struct bpf_d *));
-int bpf_setif __P((struct bpf_d *, struct ifreq *));
-int bpfselect __P((dev_t, int, struct proc *));
-static __inline void bpf_wakeup __P((struct bpf_d *));
+int bpf_allocbufs(struct bpf_d *);
+void bpf_freed(struct bpf_d *);
+void bpf_ifname(struct ifnet *, struct ifreq *);
+void bpf_mcopy(const void *, void *, size_t);
+int bpf_movein(struct uio *, int, struct mbuf **, struct sockaddr *);
+void bpf_attachd(struct bpf_d *, struct bpf_if *);
+void bpf_detachd(struct bpf_d *);
+int bpf_setif(struct bpf_d *, struct ifreq *);
+int bpfselect(dev_t, int, struct proc *);
+static __inline void bpf_wakeup(struct bpf_d *);
void bpf_catchpacket __P((struct bpf_d *, u_char *, size_t, size_t,
void (*)(const void *, void *, size_t)));
-void bpf_reset_d __P((struct bpf_d *));
+void bpf_reset_d(struct bpf_d *);
int
bpf_movein(uio, linktype, mp, sockp)
@@ -1064,7 +1064,7 @@ bpf_catchpacket(d, pkt, pktlen, snaplen, cpfn)
register struct bpf_d *d;
register u_char *pkt;
register size_t pktlen, snaplen;
- register void (*cpfn) __P((const void *, void *, size_t));
+ register void (*cpfn)(const void *, void *, size_t);
{
register struct bpf_hdr *hp;
register int totlen, curlen;