fix compile error (pointed out by nonsequitor)

SVN-Revision: 5772
owl
Felix Fietkau 2006-12-12 16:57:16 +00:00
parent c39681419e
commit f9f5874de3
1 changed files with 3 additions and 3 deletions

View File

@ -276,8 +276,8 @@ int main(int argc, char **argv)
l0 = *((u32 *) & buf[0x10]); l0 = *((u32 *) & buf[0x10]);
if (!BHDR) if (!BHDR)
*((u32 *) & buf[0x18]) = 0; *((u32 *) & buf[0x18]) = 0;
ulong sum0 = *((u32 *) & buf[0x18]); unsigned long sum0 = *((u32 *) & buf[0x18]);
ulong sum1 = *((u32 *) & buf[0x4]); unsigned long sum1 = *((u32 *) & buf[0x4]);
*((u32 *) & buf[0x4]) = 0x0L; *((u32 *) & buf[0x4]) = 0x0L;
for (i = 0; i < 0x100; i++) for (i = 0; i < 0x100; i++)
b[i] = buf[i]; b[i] = buf[i];
@ -308,7 +308,7 @@ int main(int argc, char **argv)
*((u32 *) & buf[0x4]) = sum; *((u32 *) & buf[0x4]) = sum;
write(fd, &buf[0x4], 0x4); write(fd, &buf[0x4], 0x4);
if (EHDR) { if (EHDR) {
ulong sum2 = *((u32 *) & buf[-0x8]); unsigned long sum2 = *((u32 *) & buf[-0x8]);
*((u32 *) & buf[-0x8]) = 0L; *((u32 *) & buf[-0x8]) = 0L;
sum = crc32(buf - 0x4, len - 0x4); sum = crc32(buf - 0x4, len - 0x4);
sum = htonl(sum); sum = htonl(sum);