aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2016-05-11 07:11:11 +0000
committerLuka Perkov <luka@openwrt.org>2016-06-19 19:36:09 +0200
commitbdc885709e5cd67afa786cbfab8a835f00ec9932 (patch)
treec6f10a4027ce617ee1c6f97336c7527d9cfd2406
parentaa16759d3d838c7f0d1b02e5a8aa9f665468871d (diff)
downloadmaster-187ad058-bdc885709e5cd67afa786cbfab8a835f00ec9932.tar.gz
master-187ad058-bdc885709e5cd67afa786cbfab8a835f00ec9932.tar.bz2
master-187ad058-bdc885709e5cd67afa786cbfab8a835f00ec9932.zip
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
-rw-r--r--package/system/mtd/src/imagetag.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/system/mtd/src/imagetag.c b/package/system/mtd/src/imagetag.c
index b850837791..2ad207660c 100644
--- a/package/system/mtd/src/imagetag.c
+++ b/package/system/mtd/src/imagetag.c
@@ -288,7 +288,7 @@ trx_check(int imagefd, const char *mtd, char *buf, int *len)
}
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 @@ mtd_fixtrx(const char *mtd, size_t offset)
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);