diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-09 21:05:40 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-12-09 21:05:40 +0000 |
commit | fad90db8879d102f5c613d1954c6f9a7c8db92b0 (patch) | |
tree | 9489bf3b849b4742f03e49152c5fd222ecbc0bf0 /networking/tftp.c | |
parent | fdbbb048933389c5a2624aa77aa5af2dbea75b01 (diff) | |
download | busybox-w32-fad90db8879d102f5c613d1954c6f9a7c8db92b0.tar.gz busybox-w32-fad90db8879d102f5c613d1954c6f9a7c8db92b0.tar.bz2 busybox-w32-fad90db8879d102f5c613d1954c6f9a7c8db92b0.zip |
Fix a debug message, from Bastian Blank
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index 1e1105b45..af26d4c71 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -407,9 +407,9 @@ static inline int tftp(const int cmd, const struct hostent *host, | |||
407 | "blksize"); | 407 | "blksize"); |
408 | 408 | ||
409 | if (res) { | 409 | if (res) { |
410 | int foo = atoi(res); | 410 | int blksize = atoi(res); |
411 | 411 | ||
412 | if (tftp_blocksize_check(foo, | 412 | if (tftp_blocksize_check(blksize, |
413 | tftp_bufsize - 4)) { | 413 | tftp_bufsize - 4)) { |
414 | 414 | ||
415 | if (cmd_put) { | 415 | if (cmd_put) { |
@@ -419,7 +419,7 @@ static inline int tftp(const int cmd, const struct hostent *host, | |||
419 | opcode = TFTP_ACK; | 419 | opcode = TFTP_ACK; |
420 | } | 420 | } |
421 | #ifdef CONFIG_FEATURE_TFTP_DEBUG | 421 | #ifdef CONFIG_FEATURE_TFTP_DEBUG |
422 | printf("using blksize %u\n"); | 422 | printf("using blksize %u\n", blksize); |
423 | #endif | 423 | #endif |
424 | tftp_bufsize = foo + 4; | 424 | tftp_bufsize = foo + 4; |
425 | block_nr = 0; | 425 | block_nr = 0; |