mtd: imagetag: fix compilation with changed mtd_fixtrx call
mtd: imagetag: fix compilation with changed mtd_fixtrx call

Function mtd_fixtrx was changed during trx improvements.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49371 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/package/system/mtd/src/imagetag.c
+++ b/package/system/mtd/src/imagetag.c
@@ -288,7 +288,7 @@
 }
 
 int
-mtd_fixtrx(const char *mtd, size_t offset)
+mtd_fixtrx(const char *mtd, size_t offset, size_t data_size)
 {
 	int fd;
 	struct bcm_tag *tag;
@@ -299,6 +299,9 @@
 	uint32_t imagecrc, rootfscrc, headercrc;
 	cfelen = imagelen = imagestart = imagecrc = rootfscrc = headercrc = rootfslen = 0;
 
+	if (data_size)
+		fprintf(stderr, "Specifying data size in unsupported for imagetag\n");
+
 	if (quiet < 2)
 		fprintf(stderr, "Trying to fix trx header in %s at 0x%x...\n", mtd, offset);
 

comments