From ea4702f52976a4c6e6f46b769d029752b8fb362b Mon Sep 17 00:00:00 2001 From: markus Date: Mon, 28 Jun 2010 17:35:20 +0000 Subject: [PATCH] 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 --- tools/firmware-utils/src/trx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware-utils/src/trx.c b/tools/firmware-utils/src/trx.c index 44bd06a06..fbae789ed 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");