projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a726bd8
)
mtd: imagetag: fix compilation with changed mtd_fixtrx call
author
Rafał Miłecki
<
[email protected]
>
Wed, 11 May 2016 07:11:11 +0000
(07:11 +0000)
committer
Rafał Miłecki
<
[email protected]
>
Wed, 11 May 2016 07:11:11 +0000
(07:11 +0000)
Function mtd_fixtrx was changed during trx improvements.
Signed-off-by: Rafał Miłecki <
[email protected]
>
SVN-Revision: 49371
package/system/mtd/src/imagetag.c
patch
|
blob
|
history
diff --git
a/package/system/mtd/src/imagetag.c
b/package/system/mtd/src/imagetag.c
index b8508377916a88d6920afa79935ef1541027df5b..2ad207660c7304faddf2e3096cf2d35aa4b3fac7 100644
(file)
--- 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);