diff options
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index b20486cc1..85d1a857f 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -278,7 +278,7 @@ static int tftp( USE_GETPUT(const int cmd,) | |||
278 | "unknown transfer id", | 278 | "unknown transfer id", |
279 | "file already exists", | 279 | "file already exists", |
280 | "no such user", | 280 | "no such user", |
281 | "bad option", | 281 | "bad option" |
282 | }; | 282 | }; |
283 | 283 | ||
284 | const char *msg = ""; | 284 | const char *msg = ""; |
@@ -309,7 +309,7 @@ static int tftp( USE_GETPUT(const int cmd,) | |||
309 | /* htons can be impossible to use in const initializer: */ | 309 | /* htons can be impossible to use in const initializer: */ |
310 | /*static const uint16_t error_8[2] = { htons(TFTP_ERROR), htons(8) };*/ | 310 | /*static const uint16_t error_8[2] = { htons(TFTP_ERROR), htons(8) };*/ |
311 | /* thus we open-code big-endian layout */ | 311 | /* thus we open-code big-endian layout */ |
312 | static const char error_8[4] = { 0,TFTP_ERROR, 0,8 }; | 312 | static const uint8_t error_8[4] = { 0,TFTP_ERROR, 0,8 }; |
313 | xsendto(socketfd, error_8, 4, &peer_lsa->sa, peer_lsa->len); | 313 | xsendto(socketfd, error_8, 4, &peer_lsa->sa, peer_lsa->len); |
314 | bb_error_msg("server proposes bad blksize %d, exiting", blksize); | 314 | bb_error_msg("server proposes bad blksize %d, exiting", blksize); |
315 | goto ret; | 315 | goto ret; |