summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2008-06-14 19:54:10 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2008-06-14 19:54:10 +0000
commit3dacd6b4d0e1eb0fec2bf8d93cd2aab91648efae (patch)
tree1c2f97fc1011f4c86fadc939b356542246a4fc4c
parentbb8f4167b63f302618287665a11abc93ef2fa641 (diff)
ANSIfy function definitions.
ok markus@
-rw-r--r--sys/netinet/udp_usrreq.c39
1 files changed, 10 insertions, 29 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 1d1838878c2..5a67ac33f66 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.121 2008/05/24 19:48:32 thib Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.122 2008/06/14 19:54:09 jsing Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -137,9 +137,7 @@ udp_init()
#ifdef INET6
int
-udp6_input(mp, offp, proto)
- struct mbuf **mp;
- int *offp, proto;
+udp6_input(struct mbuf **mp, int *offp, int proto)
{
struct mbuf *m = *mp;
@@ -664,9 +662,7 @@ bad:
* just wake up so that he can collect error status.
*/
void
-udp_notify(inp, errno)
- struct inpcb *inp;
- int errno;
+udp_notify(struct inpcb *inp, int errno)
{
inp->inp_socket->so_error = errno;
sorwakeup(inp->inp_socket);
@@ -675,10 +671,7 @@ udp_notify(inp, errno)
#ifdef INET6
void
-udp6_ctlinput(cmd, sa, d)
- int cmd;
- struct sockaddr *sa;
- void *d;
+udp6_ctlinput(int cmd, struct sockaddr *sa, void *d)
{
struct udphdr uh;
struct sockaddr_in6 sa6;
@@ -836,10 +829,7 @@ udp6_ctlinput(cmd, sa, d)
#endif
void *
-udp_ctlinput(cmd, sa, v)
- int cmd;
- struct sockaddr *sa;
- void *v;
+udp_ctlinput(int cmd, struct sockaddr *sa, void *v)
{
struct ip *ip = v;
struct udphdr *uhp;
@@ -1003,11 +993,8 @@ release:
/*ARGSUSED*/
int
-udp_usrreq(so, req, m, addr, control, p)
- struct socket *so;
- int req;
- struct mbuf *m, *addr, *control;
- struct proc *p;
+udp_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *addr,
+ struct mbuf *control, struct proc *p)
{
struct inpcb *inp = sotoinpcb(so);
int error = 0;
@@ -1210,8 +1197,7 @@ release:
}
void
-udp_detach(inp)
- struct inpcb *inp;
+udp_detach(struct inpcb *inp)
{
int s = splsoftnet();
@@ -1223,13 +1209,8 @@ udp_detach(inp)
* Sysctl for udp variables.
*/
int
-udp_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
- int *name;
- u_int namelen;
- void *oldp;
- size_t *oldlenp;
- void *newp;
- size_t newlen;
+udp_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen)
{
/* All sysctl names at this level are terminal. */
if (namelen != 1)