projects
/
openwrt
/
staging
/
adrian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
firmware-utils: fix compilation warnings.
[openwrt/staging/adrian.git]
/
tools
/
firmware-utils
/
src
/
buffalo-tftp.c
diff --git
a/tools/firmware-utils/src/buffalo-tftp.c
b/tools/firmware-utils/src/buffalo-tftp.c
index 1a2551a41c7b7c0a5580df5ae6642dc5e0a95b8f..087f9955b6489c71204630867d559bb1f66d4829 100644
(file)
--- 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