diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-07-22 22:15:23 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-07-25 16:59:41 +0200 |
commit | c6d4f4e1799022247bc3846a3b29068f673655e1 (patch) | |
tree | 310a7299d5ead3581471887632c1aef69d2d9777 /udp.c | |
parent | f46a46557d3fe72843a3b1bf2f18d48b44534862 (diff) | |
download | slirp-c6d4f4e1799022247bc3846a3b29068f673655e1.zip slirp-c6d4f4e1799022247bc3846a3b29068f673655e1.tar.gz slirp-c6d4f4e1799022247bc3846a3b29068f673655e1.tar.bz2 |
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 <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'udp.c')
-rw-r--r-- | udp.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -41,7 +41,7 @@ #include <slirp.h> #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; |