From: Felix Fietkau Date: Thu, 22 Sep 2016 11:37:22 +0000 (+0200) Subject: tools/firmware-utils: fix portability issue in mkmerakifw-old X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=64568cac91cf37edab7211f43263f49799906063;p=openwrt%2Fstaging%2Fluka.git tools/firmware-utils: fix portability issue in mkmerakifw-old Fixes build failure on Mac OS X Signed-off-by: Felix Fietkau --- 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)); }