projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git]
/
tools
/
firmware-utils
/
src
/
airlink.c
diff --git
a/tools/firmware-utils/src/airlink.c
b/tools/firmware-utils/src/airlink.c
index
748e84b
..
9b1016d
100644
(file)
--- 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;
l0 = *((u32 *) & buf[0x10]);
if (!BHDR)
*((u32 *) & buf[0x18]) = 0;
- ulong sum0 = *((u32 *) & buf[0x18]);
- ulong sum1 = *((u32 *) & buf[0x4]);
+ u
nsigned
long sum0 = *((u32 *) & buf[0x18]);
+ u
nsigned
long sum1 = *((u32 *) & buf[0x4]);
*((u32 *) & buf[0x4]) = 0x0L;
for (i = 0; i < 0x100; i++)
b[i] = buf[i];
*((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) {
*((u32 *) & buf[0x4]) = sum;
write(fd, &buf[0x4], 0x4);
if (EHDR) {
- ulong sum2 = *((u32 *) & buf[-0x8]);
+ u
nsigned
long sum2 = *((u32 *) & buf[-0x8]);
*((u32 *) & buf[-0x8]) = 0L;
sum = crc32(buf - 0x4, len - 0x4);
sum = htonl(sum);
*((u32 *) & buf[-0x8]) = 0L;
sum = crc32(buf - 0x4, len - 0x4);
sum = htonl(sum);
This page took
0.024239 seconds
and
4
git commands to generate.