Author: rmilecki
Date: 2016-05-11 09:11:11 +0200 (Wed, 11 May 2016)
New Revision: 49371

Modified:
   trunk/package/system/mtd/src/imagetag.c
Log:
mtd: imagetag: fix compilation with changed mtd_fixtrx call

Function mtd_fixtrx was changed during trx improvements.

Signed-off-by: Rafa{U+0142} Mi{U+0142}ecki <[email protected]>

Modified: trunk/package/system/mtd/src/imagetag.c
===================================================================
--- trunk/package/system/mtd/src/imagetag.c     2016-05-10 23:03:43 UTC (rev 
49370)
+++ trunk/package/system/mtd/src/imagetag.c     2016-05-11 07:11:11 UTC (rev 
49371)
@@ -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);
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to