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 /socket.h | |
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 'socket.h')
-rw-r--r-- | socket.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -31,11 +31,11 @@ struct socket { int so_urgc; struct in_addr so_faddr; /* foreign host table entry */ struct in_addr so_laddr; /* local host table entry */ - u_int16_t so_fport; /* foreign port */ - u_int16_t so_lport; /* local port */ + uint16_t so_fport; /* foreign port */ + uint16_t so_lport; /* local port */ - u_int8_t so_iptos; /* Type of service */ - u_int8_t so_emu; /* Is the socket emulated? */ + uint8_t so_iptos; /* Type of service */ + uint8_t so_emu; /* Is the socket emulated? */ u_char so_type; /* Type of socket, UDP or TCP */ int so_state; /* internal state flags SS_*, below */ @@ -91,7 +91,7 @@ int sosendoob(struct socket *); int sowrite(struct socket *); void sorecvfrom(struct socket *); int sosendto(struct socket *, struct mbuf *); -struct socket *tcp_listen(Slirp *, u_int32_t, u_int, u_int32_t, u_int, int); +struct socket *tcp_listen(Slirp *, uint32_t, u_int, uint32_t, u_int, int); void soisfconnecting(register struct socket *); void soisfconnected(register struct socket *); void sofwdrain(struct socket *); |