diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-01-17 15:43:53 +0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-02-07 15:49:08 +0200 |
commit | d7df0b41dc38327388c3f19fdf4246793d4a1e4b (patch) | |
tree | c22ae85e9673aab5ba4df10ee5c7e124f4cdac1b /slirp/udp.c | |
parent | a9d8b3ec4385793815d7121785730422fa3dfb68 (diff) | |
download | qemu-d7df0b41dc38327388c3f19fdf4246793d4a1e4b.zip qemu-d7df0b41dc38327388c3f19fdf4246793d4a1e4b.tar.gz qemu-d7df0b41dc38327388c3f19fdf4246793d4a1e4b.tar.bz2 |
slirp: prefer c99 types over BSD kind
Replace:
- u_char -> uint8_t
- u_short -> uint16_t
- u_long -> uint32_t
- u_int -> unsigned
- caddr_t -> char *
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/udp.c')
-rw-r--r-- | slirp/udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slirp/udp.c b/slirp/udp.c index ac42be0..5baa604 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -92,7 +92,7 @@ udp_input(register struct mbuf *m, int iphlen) * Get IP and UDP header together in first mbuf. */ ip = mtod(m, struct ip *); - uh = (struct udphdr *)((caddr_t)ip + iphlen); + uh = (struct udphdr *)((char *)ip + iphlen); /* * Make mbuf data length reflect UDP length. @@ -319,8 +319,8 @@ udp_tos(struct socket *so) } struct socket * -udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr, - u_int lport, int flags) +udp_listen(Slirp *slirp, uint32_t haddr, unsigned hport, uint32_t laddr, + unsigned lport, int flags) { struct sockaddr_in addr; struct socket *so; |