Changeset 13741
- Timestamp:
- 01/26/10 06:35:52 (3 years ago)
- File:
-
- 1 edited
-
src/router/rc/mtd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/rc/mtd.c
r13738 r13741 179 179 unsigned short flags; 180 180 unsigned char res3[10]; 181 } ;181 } __attribute__((packed)); 182 182 183 183 struct etrx_header { 184 184 struct code_header code; 185 185 struct trx_header trx; 186 } ;186 } __attribute__((packed)); 187 187 188 188 #define SQUASHFS_MAGIC 0x74717368 … … 234 234 */ 235 235 #ifdef HAVE_WRT160NL 236 fprintf(stderr,"size of ETRX header = %d\n",sizeof(struct etrx_header)); 236 237 if ((fp = fopen(path, "r"))) 237 238 count = safe_fread(&etrx, 1, sizeof(struct etrx_header), fp); … … 455 456 * Check CRC before writing if possible 456 457 */ 457 if (count == trx.len) { 458 #ifdef HAVE_WRT160NL 459 if (count == trx.len + sizeof(struct code_header)) { 460 #else 461 if (count == trx.len) { 462 #endif 458 463 if (crc != trx.crc32) { 459 464 fprintf(stderr, "%s: Bad CRC\n", path);
Note: See TracChangeset
for help on using the changeset viewer.
