aboutsummaryrefslogtreecommitdiff
path: root/slirp/tftp.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-02-23 19:40:14 +0100
committerBlue Swirl <blauwirbel@gmail.com>2011-02-25 15:58:59 +0000
commit89d2d3af518879ddfca367e56627229a09e90352 (patch)
treec8b1ae1bd402694619085b31f320ec3fa04ae174 /slirp/tftp.h
parentc3febae62b646b5bc7aa88b7cffa88160162a94e (diff)
slirp: Remove some type casts caused by bad declaration of x.tp_buf
x.tp_buf was declared as a uint8_t array, but always used as a char array (which needed a lot of type casts). The patch includes these changes: * Fix declaration of x.tp_buf and remove all type casts. * Use offsetof() to get the offset of x.tp_buf. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'slirp/tftp.h')
-rw-r--r--slirp/tftp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/tftp.h b/slirp/tftp.h
index b9f0847eb9..72e5e91bef 100644
--- a/slirp/tftp.h
+++ b/slirp/tftp.h
@@ -26,7 +26,7 @@ struct tftp_t {
uint16_t tp_error_code;
uint8_t tp_msg[512];
} tp_error;
- uint8_t tp_buf[512 + 2];
+ char tp_buf[512 + 2];
} x;
};