projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a84d51c
)
tools/firmware-utils: fix portability issue in mkmerakifw-old
author
Felix Fietkau
<nbd@nbd.name>
Thu, 22 Sep 2016 11:37:22 +0000
(13:37 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 22 Sep 2016 11:37:23 +0000
(13:37 +0200)
Fixes build failure on Mac OS X
Signed-off-by: Felix Fietkau <nbd@nbd.name>
tools/firmware-utils/src/mkmerakifw-old.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/mkmerakifw-old.c
b/tools/firmware-utils/src/mkmerakifw-old.c
index 01b9b312d9c00579e36dca6ab46c4d16d43e1c1c..05317c2a5b4eb526e1236627b8a052eb84f3fbba 100644
(file)
--- a/
tools/firmware-utils/src/mkmerakifw-old.c
+++ b/
tools/firmware-utils/src/mkmerakifw-old.c
@@
-129,7
+129,7
@@
static void usage(int status)
static void writel(unsigned char *buf, size_t offset, uint32_t value)
{
- value = hto
be32
(value);
+ value = hto
nl
(value);
memcpy(buf + offset, &value, sizeof(uint32_t));
}