diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-18 07:32:41 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-18 07:32:41 +0000 |
commit | aeed97c4cfc1ed79e45daf908ff29b7b1ad9469b (patch) | |
tree | fc959284d2a023f40634104be56b8d5156f7df67 /slirp/udp.c | |
parent | 654efcf3ede6d74657baafec14b1d3560d888620 (diff) |
Use ANSI prototypes to please sparse
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7176 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/udp.c')
-rw-r--r-- | slirp/udp.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/slirp/udp.c b/slirp/udp.c index 8d3bdd2ceb..11e78cddd5 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -63,7 +63,7 @@ static void udp_emu(struct socket *so, struct mbuf *m); struct socket *udp_last_so = &udb; void -udp_init() +udp_init(void) { udb.so_next = udb.so_prev = &udb; } @@ -72,9 +72,7 @@ udp_init() * ip->ip_len length data (IPDU) */ void -udp_input(m, iphlen) - register struct mbuf *m; - int iphlen; +udp_input(register struct mbuf *m, int iphlen) { register struct ip *ip; register struct udphdr *uh; @@ -330,8 +328,7 @@ int udp_output(struct socket *so, struct mbuf *m, } int -udp_attach(so) - struct socket *so; +udp_attach(struct socket *so) { struct sockaddr_in addr; @@ -363,8 +360,7 @@ udp_attach(so) } void -udp_detach(so) - struct socket *so; +udp_detach(struct socket *so) { closesocket(so->s); /* if (so->so_m) m_free(so->so_m); done by sofree */ @@ -631,11 +627,7 @@ struct cu_header { } struct socket * -udp_listen(port, laddr, lport, flags) - u_int port; - u_int32_t laddr; - u_int lport; - int flags; +udp_listen(u_int port, u_int32_t laddr, u_int lport, int flags) { struct sockaddr_in addr; struct socket *so; |