aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-09-22 13:37:22 +0200
committerFelix Fietkau <nbd@nbd.name>2016-09-22 13:37:23 +0200
commit64568cac91cf37edab7211f43263f49799906063 (patch)
tree2714f50b16cbb6ffa21272bbb130fd20869cfb82 /tools/firmware-utils/src
parenta84d51c85d93628fecba6dfba7e791231af19f7c (diff)
downloadupstream-64568cac91cf37edab7211f43263f49799906063.tar.gz
upstream-64568cac91cf37edab7211f43263f49799906063.tar.bz2
upstream-64568cac91cf37edab7211f43263f49799906063.zip
tools/firmware-utils: fix portability issue in mkmerakifw-old
Fixes build failure on Mac OS X Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r--tools/firmware-utils/src/mkmerakifw-old.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkmerakifw-old.c b/tools/firmware-utils/src/mkmerakifw-old.c
index 01b9b312d9..05317c2a5b 100644
--- 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 = htobe32(value);
+ value = htonl(value);
memcpy(buf + offset, &value, sizeof(uint32_t));
}