pad(erasesize);
free(buf);
-#ifdef target_brcm
- trx_fixup(outfd, mtd);
-#endif
- return 0;
+ if (trx_fixup) {
+ trx_fixup(outfd, mtd);
+ }
+ return (mtdofs - ofs);
}
void mtd_parse_jffs2data(const char *buf, const char *dir)
err = 0;
-#ifdef target_brcm
- trx_fixup(outfd, mtd);
-#endif
+ if (trx_fixup) {
+ trx_fixup(outfd, mtd);
+ }
done:
close(outfd);