projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7b08a2
)
firmware-utils: check_magic() in buffalo-lib.c always return 0
author
John Crispin
<blogic@openwrt.org>
Fri, 27 Dec 2013 21:15:31 +0000
(21:15 +0000)
committer
John Crispin
<blogic@openwrt.org>
Fri, 27 Dec 2013 21:15:31 +0000
(21:15 +0000)
spotted with cppcheck
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39171
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
tools/firmware-utils/src/buffalo-lib.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/buffalo-lib.c
b/tools/firmware-utils/src/buffalo-lib.c
index
29aee9f
..
add3a7e
100644
(file)
--- a/
tools/firmware-utils/src/buffalo-lib.c
+++ b/
tools/firmware-utils/src/buffalo-lib.c
@@
-249,10
+249,10
@@
static uint32_t get_be32(void *data)
static int check_magic(void *magic)
{
- if (!memcmp("start", magic, ENC_MAGIC_LEN))
;
+ if (!memcmp("start", magic, ENC_MAGIC_LEN))
return 0;
- if (!memcmp("asar1", magic, ENC_MAGIC_LEN))
;
+ if (!memcmp("asar1", magic, ENC_MAGIC_LEN))
return 0;
return -1;