aboutsummaryrefslogtreecommitdiff
path: root/tftp.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-07-22 22:15:23 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-07-25 16:59:41 +0200
commitc6d4f4e1799022247bc3846a3b29068f673655e1 (patch)
tree310a7299d5ead3581471887632c1aef69d2d9777 /tftp.c
parentf46a46557d3fe72843a3b1bf2f18d48b44534862 (diff)
downloadslirp-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 'tftp.c')
-rw-r--r--tftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tftp.c b/tftp.c
index 4e27132..27381c9 100644
--- a/tftp.c
+++ b/tftp.c
@@ -93,8 +93,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;
@@ -156,7 +156,7 @@ static int tftp_send_oack(struct tftp_session *spt, const char *key,
return 0;
}
-static void tftp_send_error(struct tftp_session *spt, u_int16_t errorcode,
+static void tftp_send_error(struct tftp_session *spt, uint16_t errorcode,
const char *msg, struct tftp_t *recv_tp)
{
struct sockaddr_in saddr, daddr;
@@ -194,7 +194,7 @@ out:
tftp_session_terminate(spt);
}
-static int tftp_send_data(struct tftp_session *spt, u_int16_t block_nr,
+static int tftp_send_data(struct tftp_session *spt, uint16_t block_nr,
struct tftp_t *recv_tp)
{
struct sockaddr_in saddr, daddr;