Mercurial > ecos
diff packages/net/common/current/src/tftp_client.c @ 270:42332443fea2
Fix TFTP for large (16MB+) files.
| author | gthomas |
|---|---|
| date | Wed, 07 Aug 2002 14:42:28 +0000 |
| parents | e0c0827131d1 |
| children | 7c34839e7e97 |
line wrap: on
line diff
--- a/packages/net/common/current/src/tftp_client.c +++ b/packages/net/common/current/src/tftp_client.c @@ -58,7 +58,7 @@ tftp_get(char *filename, struct tftphdr *hdr = (struct tftphdr *)data; char *cp, *fp; struct timeval timeout; - int last_good_block = 0; + unsigned short last_good_block = 0; struct servent *server_info; fd_set fds; int total_timeouts = 0; @@ -226,7 +226,7 @@ tftp_put(char *filename, struct tftphdr *hdr = (struct tftphdr *)data; char *cp, *fp, *sfp; struct timeval timeout; - int last_good_block = 0; + unsigned short last_good_block = 0; struct servent *server_info; fd_set fds; int total_timeouts = 0;
