diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-06 02:19:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-06 02:19:47 +0000 |
commit | 0d247e402ea9508b15e37fdd16d96e7d5ddd5498 (patch) | |
tree | 4e2eb9db8a946fa9312f26247d3ef5afbf96957b /nuttx/netutils | |
parent | c2ead96fbf7b8d8ba3cf074fd8ef82ceb049c6ae (diff) | |
download | px4-nuttx-0d247e402ea9508b15e37fdd16d96e7d5ddd5498.tar.gz px4-nuttx-0d247e402ea9508b15e37fdd16d96e7d5ddd5498.tar.bz2 px4-nuttx-0d247e402ea9508b15e37fdd16d96e7d5ddd5498.zip |
Eliminate warnings in ARM build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@883 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/netutils')
-rw-r--r-- | nuttx/netutils/tftpc/tftpc_get.c | 2 | ||||
-rw-r--r-- | nuttx/netutils/tftpc/tftpc_put.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/netutils/tftpc/tftpc_get.c b/nuttx/netutils/tftpc/tftpc_get.c index bb2f96267..584664599 100644 --- a/nuttx/netutils/tftpc/tftpc_get.c +++ b/nuttx/netutils/tftpc/tftpc_get.c @@ -262,7 +262,7 @@ int tftpget(const char *remote, const char *local, in_addr_t addr, boolean binar /* Parse the incoming DATA packet */ if (nbytesrecvd < TFTP_DATAHEADERSIZE || - tftp_parsedatapacket(packet, &opcode, &blockno) != OK || + tftp_parsedatapacket(packet, &opcode, &rblockno) != OK || blockno != rblockno) { nvdbg("Parse failure\n"); diff --git a/nuttx/netutils/tftpc/tftpc_put.c b/nuttx/netutils/tftpc/tftpc_put.c index 1d19a2d74..ca158a783 100644 --- a/nuttx/netutils/tftpc/tftpc_put.c +++ b/nuttx/netutils/tftpc/tftpc_put.c @@ -96,7 +96,7 @@ static inline int tftp_incrndx(int ndx) static inline ssize_t tftp_read(int fd, ubyte *buf, size_t buflen) { ssize_t nbytesread; - ssize_t totalread; + ssize_t totalread = 0; while (totalread < buflen) { |