aboutsummaryrefslogtreecommitdiffstats
path: root/package/mtd/src/trx.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-03-27 17:38:33 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-03-27 17:38:33 +0000
commit37712c70c5e70bffdcf0afd364ed3340f4a7e8fe (patch)
treeceec4ad110e9c5dbacd34e7c7836d55f8bdcb638 /package/mtd/src/trx.c
parent67584948974eebb93e87f30a417fc1bde5f73542 (diff)
downloadupstream-37712c70c5e70bffdcf0afd364ed3340f4a7e8fe.tar.gz
upstream-37712c70c5e70bffdcf0afd364ed3340f4a7e8fe.tar.bz2
upstream-37712c70c5e70bffdcf0afd364ed3340f4a7e8fe.zip
package/mtd: add fixtrx command
* patch by Bernhard Loos * note: trailing whitespaces are removed SVN-Revision: 20524
Diffstat (limited to 'package/mtd/src/trx.c')
-rw-r--r--package/mtd/src/trx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/mtd/src/trx.c b/package/mtd/src/trx.c
index f48317589c..7094ef62b0 100644
--- a/package/mtd/src/trx.c
+++ b/package/mtd/src/trx.c
@@ -1,7 +1,7 @@
/*
* trx.c
*
- * Copyright (C) 2005 Mike Baker
+ * Copyright (C) 2005 Mike Baker
* Copyright (C) 2008 Felix Fietkau <nbd@openwrt.org>
*
* This program is free software; you can redistribute it and/or
@@ -75,7 +75,6 @@ trx_fixup(int fd, const char *name)
goto err;
}
- init_crc32();
scan = ptr + offsetof(struct trx_header, flag_version);
trx->crc32 = crc32buf(scan, trx->len - (scan - ptr));
msync(ptr, sizeof(struct trx_header), MS_SYNC|MS_INVALIDATE);