summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-12 16:57:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-12 16:57:16 +0000
commitf9f5874de3a159d4eefd6f7012382521d503658f (patch)
treef4893a7e52d224afac9d59c9fb0736b62c4ae1e2 /tools
parentc39681419eb0679acaab022ef1a9a12e489fd448 (diff)
downloadmtk-20170518-f9f5874de3a159d4eefd6f7012382521d503658f.zip
mtk-20170518-f9f5874de3a159d4eefd6f7012382521d503658f.tar.gz
mtk-20170518-f9f5874de3a159d4eefd6f7012382521d503658f.tar.bz2
fix compile error (pointed out by nonsequitor)
SVN-Revision: 5772
Diffstat (limited to 'tools')
-rw-r--r--tools/firmware-utils/src/airlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/airlink.c b/tools/firmware-utils/src/airlink.c
index 748e84b..9b1016d 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);