From c6d4f4e1799022247bc3846a3b29068f673655e1 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 22 Jul 2010 22:15:23 +0200 Subject: slirp: Replace u_int8_t, u_int16_t, u_int32_t, u_int64_t by standard int types There is no need to have a second set of integral types. Replace them by the standard types from stdint.h. Signed-off-by: Stefan Weil Signed-off-by: Aurelien Jarno --- udp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'udp.c') diff --git a/udp.c b/udp.c index 7eceea0..8f053c6 100644 --- a/udp.c +++ b/udp.c @@ -41,7 +41,7 @@ #include #include "ip_icmp.h" -static u_int8_t udp_tos(struct socket *so); +static uint8_t udp_tos(struct socket *so); void udp_init(Slirp *slirp) { @@ -86,7 +86,7 @@ void udp_input(register struct mbuf *m, int iphlen) * Make mbuf data length reflect UDP length. * If not enough data to reflect UDP length, drop. */ - len = ntohs((u_int16_t)uh->uh_ulen); + len = ntohs((uint16_t)uh->uh_ulen); if (ip->ip_len != len) { if (len > ip->ip_len) { @@ -313,7 +313,7 @@ void udp_detach(struct socket *so) static const struct tos_t udptos[] = { { 0, 53, IPTOS_LOWDELAY, 0 }, /* DNS */ { 0, 0, 0, 0 } }; -static u_int8_t udp_tos(struct socket *so) +static uint8_t udp_tos(struct socket *so) { int i = 0; @@ -329,8 +329,8 @@ static u_int8_t udp_tos(struct socket *so) return 0; } -struct socket *udp_listen(Slirp *slirp, u_int32_t haddr, u_int hport, - u_int32_t laddr, u_int lport, int flags) +struct socket *udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, + uint32_t laddr, u_int lport, int flags) { struct sockaddr_in addr; struct socket *so; -- cgit v1.1