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/tftp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'slirp/tftp.c') diff --git a/slirp/tftp.c b/slirp/tftp.c index 67e9f2b9d6..55e4692acc 100644 --- a/slirp/tftp.c +++ b/slirp/tftp.c @@ -92,8 +92,8 @@ static int tftp_session_find(Slirp *slirp, struct tftp_t *tp) return -1; } -static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr, - u_int8_t *buf, int len) +static int tftp_read_data(struct tftp_session *spt, uint16_t block_nr, + uint8_t *buf, int len) { int fd; int bytes_read = 0; @@ -155,7 +155,7 @@ static int tftp_send_oack(struct tftp_session *spt, } static void tftp_send_error(struct tftp_session *spt, - u_int16_t errorcode, const char *msg, + uint16_t errorcode, const char *msg, struct tftp_t *recv_tp) { struct sockaddr_in saddr, daddr; @@ -194,7 +194,7 @@ out: } static int tftp_send_data(struct tftp_session *spt, - u_int16_t block_nr, + uint16_t block_nr, struct tftp_t *recv_tp) { struct sockaddr_in saddr, daddr; -- cgit v1.2.1