aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tcp_timer.c6
-rw-r--r--udp.c14
2 files changed, 8 insertions, 12 deletions
diff --git a/tcp_timer.c b/tcp_timer.c
index af8e918..8942ca4 100644
--- a/tcp_timer.c
+++ b/tcp_timer.c
@@ -43,7 +43,7 @@ static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer);
/*
* Fast timeout routine for processing delayed acks
*/
-void tcp_fasttimo()
+void tcp_fasttimo(void)
{
register struct socket *so;
register struct tcpcb *tp;
@@ -67,7 +67,7 @@ void tcp_fasttimo()
* Updates the timers in all active tcb's and
* causes finite state machine actions if timers expire.
*/
-void tcp_slowtimo()
+void tcp_slowtimo(void)
{
register struct socket *ip, *ipnxt;
register struct tcpcb *tp;
@@ -109,7 +109,7 @@ void tcp_slowtimo()
/*
* Cancel all timers for TCP tp.
*/
-void tcp_canceltimers(tp) struct tcpcb *tp;
+void tcp_canceltimers(struct tcpcb *tp)
{
register int i;
diff --git a/udp.c b/udp.c
index 9a12896..90856b6 100644
--- a/udp.c
+++ b/udp.c
@@ -62,7 +62,7 @@ static void udp_emu(struct socket *so, struct mbuf *m);
struct socket *udp_last_so = &udb;
-void udp_init()
+void udp_init(void)
{
udb.so_next = udb.so_prev = &udb;
}
@@ -70,8 +70,7 @@ void udp_init()
* m->m_len length ip packet
* ip->ip_len length data (IPDU)
*/
-void udp_input(m, iphlen) register struct mbuf *m;
-int iphlen;
+void udp_input(register struct mbuf *m, int iphlen)
{
register struct ip *ip;
register struct udphdr *uh;
@@ -328,7 +327,7 @@ int udp_output(struct socket *so, struct mbuf *m, struct sockaddr_in *addr)
return udp_output2(so, m, &saddr, &daddr, so->so_iptos);
}
-int udp_attach(so) struct socket *so;
+int udp_attach(struct socket *so)
{
struct sockaddr_in addr;
@@ -359,7 +358,7 @@ int udp_attach(so) struct socket *so;
return (so->s);
}
-void udp_detach(so) struct socket *so;
+void udp_detach(struct socket *so)
{
closesocket(so->s);
/* if (so->so_m) m_free(so->so_m); done by sofree */
@@ -622,10 +621,7 @@ static void udp_emu(struct socket *so, struct mbuf *m)
}
}
-struct socket *udp_listen(port, laddr, lport, flags) u_int port;
-u_int32_t laddr;
-u_int lport;
-int flags;
+struct socket *udp_listen(u_int port, u_int32_t laddr, u_int lport, int flags)
{
struct sockaddr_in addr;
struct socket *so;