aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarkus Wigge <markus@cultcom.de>2010-06-28 17:35:20 +0000
committerMarkus Wigge <markus@cultcom.de>2010-06-28 17:35:20 +0000
commit54ffe62dedb1f1081841a48964f33ae698e55f2d (patch)
tree2b74f29c4fbd47503a6f09fe8feb551750c1dca7 /tools
parent19842ab5da93cef22bab3b97a14cc35fe076b22b (diff)
downloadmaster-187ad058-54ffe62dedb1f1081841a48964f33ae698e55f2d.tar.gz
master-187ad058-54ffe62dedb1f1081841a48964f33ae698e55f2d.tar.bz2
master-187ad058-54ffe62dedb1f1081841a48964f33ae698e55f2d.zip
fixed trx version to handling
I forgot to write the right trx version to the actual header... git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21986 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/firmware-utils/src/trx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/trx.c b/tools/firmware-utils/src/trx.c
index 44bd06a068..fbae789ed9 100644
--- a/tools/firmware-utils/src/trx.c
+++ b/tools/firmware-utils/src/trx.c
@@ -114,7 +114,6 @@ int main(int argc, char **argv)
p->magic = STORE32_LE(TRX_MAGIC);
cur_len = sizeof(struct trx_header) - 4; /* assume v1 header */
- p->flag_version = STORE32_LE((trx_version << 16));
in = NULL;
i = 0;
@@ -243,6 +242,7 @@ int main(int argc, char **argv)
usage();
}
}
+ p->flag_version = STORE32_LE((trx_version << 16));
if (!in) {
fprintf(stderr, "we require atleast one filename\n");