Commit aeed97c4cfc1ed79e45daf908ff29b7b1ad9469b
1 parent
654efcf3
Use ANSI prototypes to please sparse
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7176 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
8 additions
and
17 deletions
slirp/tcp_timer.c
| ... | ... | @@ -44,7 +44,7 @@ static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer); |
| 44 | 44 | * Fast timeout routine for processing delayed acks |
| 45 | 45 | */ |
| 46 | 46 | void |
| 47 | -tcp_fasttimo() | |
| 47 | +tcp_fasttimo(void) | |
| 48 | 48 | { |
| 49 | 49 | register struct socket *so; |
| 50 | 50 | register struct tcpcb *tp; |
| ... | ... | @@ -69,7 +69,7 @@ tcp_fasttimo() |
| 69 | 69 | * causes finite state machine actions if timers expire. |
| 70 | 70 | */ |
| 71 | 71 | void |
| 72 | -tcp_slowtimo() | |
| 72 | +tcp_slowtimo(void) | |
| 73 | 73 | { |
| 74 | 74 | register struct socket *ip, *ipnxt; |
| 75 | 75 | register struct tcpcb *tp; |
| ... | ... | @@ -113,8 +113,7 @@ tpgone: |
| 113 | 113 | * Cancel all timers for TCP tp. |
| 114 | 114 | */ |
| 115 | 115 | void |
| 116 | -tcp_canceltimers(tp) | |
| 117 | - struct tcpcb *tp; | |
| 116 | +tcp_canceltimers(struct tcpcb *tp) | |
| 118 | 117 | { |
| 119 | 118 | register int i; |
| 120 | 119 | ... | ... |
slirp/udp.c
| ... | ... | @@ -63,7 +63,7 @@ static void udp_emu(struct socket *so, struct mbuf *m); |
| 63 | 63 | struct socket *udp_last_so = &udb; |
| 64 | 64 | |
| 65 | 65 | void |
| 66 | -udp_init() | |
| 66 | +udp_init(void) | |
| 67 | 67 | { |
| 68 | 68 | udb.so_next = udb.so_prev = &udb; |
| 69 | 69 | } |
| ... | ... | @@ -72,9 +72,7 @@ udp_init() |
| 72 | 72 | * ip->ip_len length data (IPDU) |
| 73 | 73 | */ |
| 74 | 74 | void |
| 75 | -udp_input(m, iphlen) | |
| 76 | - register struct mbuf *m; | |
| 77 | - int iphlen; | |
| 75 | +udp_input(register struct mbuf *m, int iphlen) | |
| 78 | 76 | { |
| 79 | 77 | register struct ip *ip; |
| 80 | 78 | register struct udphdr *uh; |
| ... | ... | @@ -330,8 +328,7 @@ int udp_output(struct socket *so, struct mbuf *m, |
| 330 | 328 | } |
| 331 | 329 | |
| 332 | 330 | int |
| 333 | -udp_attach(so) | |
| 334 | - struct socket *so; | |
| 331 | +udp_attach(struct socket *so) | |
| 335 | 332 | { |
| 336 | 333 | struct sockaddr_in addr; |
| 337 | 334 | |
| ... | ... | @@ -363,8 +360,7 @@ udp_attach(so) |
| 363 | 360 | } |
| 364 | 361 | |
| 365 | 362 | void |
| 366 | -udp_detach(so) | |
| 367 | - struct socket *so; | |
| 363 | +udp_detach(struct socket *so) | |
| 368 | 364 | { |
| 369 | 365 | closesocket(so->s); |
| 370 | 366 | /* if (so->so_m) m_free(so->so_m); done by sofree */ |
| ... | ... | @@ -631,11 +627,7 @@ struct cu_header { |
| 631 | 627 | } |
| 632 | 628 | |
| 633 | 629 | struct socket * |
| 634 | -udp_listen(port, laddr, lport, flags) | |
| 635 | - u_int port; | |
| 636 | - u_int32_t laddr; | |
| 637 | - u_int lport; | |
| 638 | - int flags; | |
| 630 | +udp_listen(u_int port, u_int32_t laddr, u_int lport, int flags) | |
| 639 | 631 | { |
| 640 | 632 | struct sockaddr_in addr; |
| 641 | 633 | struct socket *so; | ... | ... |