summaryrefslogtreecommitdiff
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2011-06-21 21:13:58 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2011-06-21 21:13:58 +0000
commitfbed51a8b52c517e5bfd6576729a763bf1d09ca5 (patch)
tree56a4fb41e73472947e8b83c9b6980cca7b15b2f6 /tools/firmware-utils
parent5a76c6bdd79800da721267a8747cac89766408da (diff)
downloadmtk-20170518-fbed51a8b52c517e5bfd6576729a763bf1d09ca5.zip
mtk-20170518-fbed51a8b52c517e5bfd6576729a763bf1d09ca5.tar.gz
mtk-20170518-fbed51a8b52c517e5bfd6576729a763bf1d09ca5.tar.bz2
firmware-utils: fix build on big endian systems
This closes #9446 SVN-Revision: 27255
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/trx2edips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/trx2edips.c b/tools/firmware-utils/src/trx2edips.c
index 3869648..f8d068d 100644
--- a/tools/firmware-utils/src/trx2edips.c
+++ b/tools/firmware-utils/src/trx2edips.c
@@ -157,7 +157,7 @@ int main(int argc, char *argv[])
/* make the 3 partition beeing 12 bytes closer from the header */
memcpy(buf + LOAD32_LE(p->offsets[2]) - EDIMAX_HDR_LEN, buf + LOAD32_LE(p->offsets[2]), length - LOAD32_LE(p->offsets[2]));
/* recompute the crc32 check */
- p->crc32 = STORE32_LE(crc32buf((char *) &(LOAD32_LE(p->flag_version)), length - offsetof(struct trx_header, flag_version)));
+ p->crc32 = STORE32_LE(crc32buf((char *) &p->flag_version, length - offsetof(struct trx_header, flag_version)));
eh.sign = STORE32_LE(EDIMAX_PS16);
eh.length = STORE32_LE(length);