projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db8c22
)
Ptch by Hideki IWAMOTO, fix a bug preventing tftp from getting or
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 22 Feb 2004 03:33:53 +0000
(
03:33
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 22 Feb 2004 03:33:53 +0000
(
03:33
-0000)
putting more than 0xffff blocks.
networking/tftp.c
patch
|
blob
|
history
diff --git
a/networking/tftp.c
b/networking/tftp.c
index 1468576860df70148fb932347a3ed25f8f771b2d..0bc562dd0fc33d3274f90c27cf98971b2541411d 100644
(file)
--- a/
networking/tftp.c
+++ b/
networking/tftp.c
@@
-156,7
+156,7
@@
static inline int tftp(const int cmd, const struct hostent *host,
int opcode = 0;
int finished = 0;
int timeout = bb_tftp_num_retries;
-
in
t block_nr = 1;
+
unsigned shor
t block_nr = 1;
#ifdef CONFIG_FEATURE_TFTP_BLOCKSIZE
int want_option_ack = 0;
@@
-462,7
+462,7
@@
static inline int tftp(const int cmd, const struct hostent *host,
if (cmd_put && (opcode == TFTP_ACK)) {
- if (tmp == (block_nr - 1)) {
+ if (tmp == (
unsigned short)(
block_nr - 1)) {
if (finished) {
break;
}