From b6dce92e8917762e6bf81e177b20a0b7909a0532 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 --- slirp/udp.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'slirp/udp.h') diff --git a/slirp/udp.h b/slirp/udp.h index 47d2f3d4cd..9b5c3cf56a 100644 --- a/slirp/udp.h +++ b/slirp/udp.h @@ -41,10 +41,10 @@ * Per RFC 768, September, 1981. */ struct udphdr { - u_int16_t uh_sport; /* source port */ - u_int16_t uh_dport; /* destination port */ - int16_t uh_ulen; /* udp length */ - u_int16_t uh_sum; /* udp checksum */ + uint16_t uh_sport; /* source port */ + uint16_t uh_dport; /* destination port */ + int16_t uh_ulen; /* udp length */ + uint16_t uh_sum; /* udp checksum */ }; /* @@ -78,7 +78,7 @@ void udp_input(register struct mbuf *, int); int udp_output(struct socket *, struct mbuf *, struct sockaddr_in *); int udp_attach(struct socket *); void udp_detach(struct socket *); -struct socket * udp_listen(Slirp *, u_int32_t, u_int, u_int32_t, u_int, +struct socket * udp_listen(Slirp *, uint32_t, u_int, uint32_t, u_int, int); int udp_output2(struct socket *so, struct mbuf *m, struct sockaddr_in *saddr, struct sockaddr_in *daddr, -- cgit v1.2.3