From 05fcd39f479e295cbfd9fe413c752691c21d524d Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sat, 27 Mar 2010 17:38:33 +0000 Subject: package/mtd: add fixtrx command * patch by Bernhard Loos * note: trailing whitespaces are removed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20524 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mtd/src/trx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package/mtd/src/trx.c') 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 * * 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); -- cgit v1.2.3