diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-12-12 16:57:16 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-12-12 16:57:16 +0000 |
commit | adfbea409789faa2081cfa3e090a67e3936aa866 (patch) | |
tree | 5615e38ab0b794fe88d5eb86ca98e2525c8d46d5 /tools/firmware-utils/src | |
parent | 00d9d408c8152d7de1c932b896521ddacfdb1e3b (diff) |
fix compile error (pointed out by nonsequitor)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5772 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r-- | tools/firmware-utils/src/airlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/airlink.c b/tools/firmware-utils/src/airlink.c index 748e84bcb..9b1016da7 100644 --- a/tools/firmware-utils/src/airlink.c +++ b/tools/firmware-utils/src/airlink.c @@ -276,8 +276,8 @@ int main(int argc, char **argv) l0 = *((u32 *) & buf[0x10]); if (!BHDR) *((u32 *) & buf[0x18]) = 0; - ulong sum0 = *((u32 *) & buf[0x18]); - ulong sum1 = *((u32 *) & buf[0x4]); + unsigned long sum0 = *((u32 *) & buf[0x18]); + unsigned long sum1 = *((u32 *) & buf[0x4]); *((u32 *) & buf[0x4]) = 0x0L; for (i = 0; i < 0x100; i++) b[i] = buf[i]; @@ -308,7 +308,7 @@ int main(int argc, char **argv) *((u32 *) & buf[0x4]) = sum; write(fd, &buf[0x4], 0x4); if (EHDR) { - ulong sum2 = *((u32 *) & buf[-0x8]); + unsigned long sum2 = *((u32 *) & buf[-0x8]); *((u32 *) & buf[-0x8]) = 0L; sum = crc32(buf - 0x4, len - 0x4); sum = htonl(sum); |