Revision b6dce92e slirp/tftp.c
b/slirp/tftp.c | ||
---|---|---|
92 | 92 |
return -1; |
93 | 93 |
} |
94 | 94 |
|
95 |
static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr,
|
|
96 |
u_int8_t *buf, int len)
|
|
95 |
static int tftp_read_data(struct tftp_session *spt, uint16_t block_nr, |
|
96 |
uint8_t *buf, int len)
|
|
97 | 97 |
{ |
98 | 98 |
int fd; |
99 | 99 |
int bytes_read = 0; |
... | ... | |
155 | 155 |
} |
156 | 156 |
|
157 | 157 |
static void tftp_send_error(struct tftp_session *spt, |
158 |
u_int16_t errorcode, const char *msg,
|
|
158 |
uint16_t errorcode, const char *msg, |
|
159 | 159 |
struct tftp_t *recv_tp) |
160 | 160 |
{ |
161 | 161 |
struct sockaddr_in saddr, daddr; |
... | ... | |
194 | 194 |
} |
195 | 195 |
|
196 | 196 |
static int tftp_send_data(struct tftp_session *spt, |
197 |
u_int16_t block_nr,
|
|
197 |
uint16_t block_nr,
|
|
198 | 198 |
struct tftp_t *recv_tp) |
199 | 199 |
{ |
200 | 200 |
struct sockaddr_in saddr, daddr; |
Also available in: Unified diff