summaryrefslogtreecommitdiffstats
path: root/sys/netnatm
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-03-20 02:39:27 +0000
committeralfred <alfred@FreeBSD.org>2002-03-20 02:39:27 +0000
commit8c4c86de23351a059da32e84dccff0bbbc8d3c48 (patch)
tree2a41332f622d84e4f0df94b6de39425b6b6edb69 /sys/netnatm
parent7c9efde44f78fd47045d2489f43bb960037e6ac5 (diff)
downloadFreeBSD-src-8c4c86de23351a059da32e84dccff0bbbc8d3c48.zip
FreeBSD-src-8c4c86de23351a059da32e84dccff0bbbc8d3c48.tar.gz
Remove __P.
Diffstat (limited to 'sys/netnatm')
-rw-r--r--sys/netnatm/natm.c29
-rw-r--r--sys/netnatm/natm.h20
-rw-r--r--sys/netnatm/natm_pcb.c2
-rw-r--r--sys/netnatm/natm_proto.c2
4 files changed, 25 insertions, 28 deletions
diff --git a/sys/netnatm/natm.c b/sys/netnatm/natm.c
index 12465c1..1e9da08 100644
--- a/sys/netnatm/natm.c
+++ b/sys/netnatm/natm.c
@@ -69,22 +69,19 @@ static u_long natm0_recvspace = 16*1024;
/*
* FreeBSD new usrreqs supersedes pr_usrreq.
*/
-static int natm_usr_attach __P((struct socket *, int, d_thread_t *));
-static int natm_usr_detach __P((struct socket *));
-static int natm_usr_connect __P((struct socket *, struct sockaddr *,
- d_thread_t *));
-static int natm_usr_disconnect __P((struct socket *));
-static int natm_usr_shutdown __P((struct socket *));
-static int natm_usr_send __P((struct socket *, int, struct mbuf *,
- struct sockaddr *, struct mbuf *,
- d_thread_t *));
-static int natm_usr_peeraddr __P((struct socket *, struct sockaddr **));
-static int natm_usr_control __P((struct socket *, u_long, caddr_t,
- struct ifnet *, d_thread_t *));
-static int natm_usr_abort __P((struct socket *));
-static int natm_usr_bind __P((struct socket *, struct sockaddr *,
- d_thread_t *));
-static int natm_usr_sockaddr __P((struct socket *, struct sockaddr **));
+static int natm_usr_attach(struct socket *, int, d_thread_t *);
+static int natm_usr_detach(struct socket *);
+static int natm_usr_connect(struct socket *, struct sockaddr *, d_thread_t *);
+static int natm_usr_disconnect(struct socket *);
+static int natm_usr_shutdown(struct socket *);
+static int natm_usr_send(struct socket *, int, struct mbuf *,
+ struct sockaddr *, struct mbuf *, d_thread_t *);
+static int natm_usr_peeraddr(struct socket *, struct sockaddr **);
+static int natm_usr_control(struct socket *, u_long, caddr_t,
+ struct ifnet *, d_thread_t *);
+static int natm_usr_abort(struct socket *);
+static int natm_usr_bind(struct socket *, struct sockaddr *, d_thread_t *);
+static int natm_usr_sockaddr(struct socket *, struct sockaddr **);
static int
natm_usr_attach(struct socket *so, int proto, d_thread_t *p)
diff --git a/sys/netnatm/natm.h b/sys/netnatm/natm.h
index 431eb35..b695006 100644
--- a/sys/netnatm/natm.h
+++ b/sys/netnatm/natm.h
@@ -130,14 +130,14 @@ struct atm_rawioctl {
/* external functions */
/* natm_pcb.c */
-struct natmpcb *npcb_alloc __P((int));
-void npcb_free __P((struct natmpcb *, int));
-struct natmpcb *npcb_add __P((struct natmpcb *, struct ifnet *, int, int));
+struct natmpcb *npcb_alloc(int);
+void npcb_free(struct natmpcb *, int);
+struct natmpcb *npcb_add(struct natmpcb *, struct ifnet *, int, int);
/* natm.c */
#if defined(__NetBSD__) || defined(__OpenBSD__)
-int natm_usrreq __P((struct socket *, int, struct mbuf *,
- struct mbuf *, struct mbuf *, struct proc *));
+int natm_usrreq(struct socket *, int, struct mbuf *,
+ struct mbuf *, struct mbuf *, struct proc *);
#elif defined(__FreeBSD__)
#if __FreeBSD__ > 2
/*
@@ -147,12 +147,12 @@ int natm_usrreq __P((struct socket *, int, struct mbuf *,
#define FREEBSD_USRREQS
extern struct pr_usrreqs natm_usrreqs;
#else /* !( __FreeBSD__ > 2) */
-int natm_usrreq __P((struct socket *, int, struct mbuf *,
- struct mbuf *, struct mbuf *));
+int natm_usrreq(struct socket *, int, struct mbuf *,
+ struct mbuf *, struct mbuf *);
#endif /* !( __FreeBSD__ > 2) */
#endif
-int natm0_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
-int natm5_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
-void natmintr __P((void));
+int natm0_sysctl(int *, u_int, void *, size_t *, void *, size_t);
+int natm5_sysctl(int *, u_int, void *, size_t *, void *, size_t);
+void natmintr(void);
#endif
diff --git a/sys/netnatm/natm_pcb.c b/sys/netnatm/natm_pcb.c
index ccb253a..7016e33 100644
--- a/sys/netnatm/natm_pcb.c
+++ b/sys/netnatm/natm_pcb.c
@@ -169,7 +169,7 @@ done:
#ifdef DDB
-int npcb_dump __P((void));
+int npcb_dump(void);
int npcb_dump()
diff --git a/sys/netnatm/natm_proto.c b/sys/netnatm/natm_proto.c
index 3843f81..6222799 100644
--- a/sys/netnatm/natm_proto.c
+++ b/sys/netnatm/natm_proto.c
@@ -54,7 +54,7 @@
extern struct domain natmdomain;
-static void natm_init __P((void));
+static void natm_init(void);
static struct protosw natmsw[] = {
{ SOCK_STREAM, &natmdomain, PROTO_NATMAAL5, PR_CONNREQUIRED,
OpenPOWER on IntegriCloud