X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/28e44a8c63ad34a9d8cd30c400bc91f6506fe2df..de50d6624ffd8250930462e43163bdec1747a999:/package/mtd/src/mtd.c?ds=inline diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index d14b196bc..5fa260b91 100644 --- a/package/mtd/src/mtd.c +++ b/package/mtd/src/mtd.c @@ -41,7 +41,7 @@ #include #include #include -#include "mtd-api.h" +#include #include "fis.h" #include "mtd.h" @@ -409,6 +409,9 @@ resume: /* got an EOF marker - this is the place to add some jffs2 data */ skip = mtd_replace_jffs2(mtd, fd, e, jffs2file); + /* don't add it again */ + jffs2file = NULL; + w += skip; e += skip; skip -= buflen; @@ -597,8 +600,8 @@ int main (int argc, char **argv) jffs2dir = optarg; break; case 'o': - if (!mtd_fixtrx) { - fprintf(stderr, "-o: Only for brcm47xx\n"); + if (!mtd_fixtrx) { + fprintf(stderr, "-o: is not available on this platform\n"); usage(); } errno = 0;