projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize backfire 10.03 so it can be operational again
[openwrt-10.03/.git]
/
package
/
mtd
/
src
/
jffs2.c
diff --git
a/package/mtd/src/jffs2.c
b/package/mtd/src/jffs2.c
index 49a7d56120e05cc78a6e12754a1a67c9eab2670a..2a83bd47f4aa2ba5422cffae1d37991758468f5e 100644
(file)
--- a/
package/mtd/src/jffs2.c
+++ b/
package/mtd/src/jffs2.c
@@
-244,10
+244,7
@@
int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename)
pad(erasesize);
free(buf);
pad(erasesize);
free(buf);
-#ifdef target_brcm
- trx_fixup(outfd, mtd);
-#endif
- return 0;
+ return (mtdofs - ofs);
}
void mtd_parse_jffs2data(const char *buf, const char *dir)
}
void mtd_parse_jffs2data(const char *buf, const char *dir)
@@
-347,9
+344,9
@@
int mtd_write_jffs2(const char *mtd, const char *filename, const char *dir)
err = 0;
err = 0;
-#ifdef target_brcm
- trx_fixup(outfd, mtd);
-#endif
+ if (trx_fixup) {
+
trx_fixup(outfd, mtd);
+ }
done:
close(outfd);
done:
close(outfd);