aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/buffalo-tftp.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-10-20 06:29:13 +0000
committerJohn Crispin <john@openwrt.org>2014-10-20 06:29:13 +0000
commit7322fe161a5c241628830bea9a5043fd08e0bd65 (patch)
tree1507a6585237e32489d1ebf46e21ae66432e5b51 /tools/firmware-utils/src/buffalo-tftp.c
parent829bf6b9a167740a2a113c5af22bce222b7fc5bd (diff)
downloadupstream-7322fe161a5c241628830bea9a5043fd08e0bd65.tar.gz
upstream-7322fe161a5c241628830bea9a5043fd08e0bd65.tar.bz2
upstream-7322fe161a5c241628830bea9a5043fd08e0bd65.zip
firmware-utils: fix compilation warnings.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 42986
Diffstat (limited to 'tools/firmware-utils/src/buffalo-tftp.c')
-rw-r--r--tools/firmware-utils/src/buffalo-tftp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/firmware-utils/src/buffalo-tftp.c b/tools/firmware-utils/src/buffalo-tftp.c
index 1a2551a41c..087f9955b6 100644
--- a/tools/firmware-utils/src/buffalo-tftp.c
+++ b/tools/firmware-utils/src/buffalo-tftp.c
@@ -70,7 +70,6 @@ static int crypt_file(void)
{
unsigned char *buf = NULL;
ssize_t src_len;
- ssize_t crypt_len;
int err;
int ret = -1;
@@ -92,7 +91,6 @@ static int crypt_file(void)
goto out;
}
- crypt_len = (src_len > 512) ? 512 : src_len;
if (do_decrypt)
crypt_header(buf, 512, crypt_key2, crypt_key1);
else