[source] tools/firmware-utils: fix portability issue in mkmerakifw-old

LEDE Commits lede-commits at lists.infradead.org
Thu Sep 22 04:37:43 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/64568cac91cf37edab7211f43263f49799906063

commit 64568cac91cf37edab7211f43263f49799906063
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Sep 22 13:37:22 2016 +0200

    tools/firmware-utils: fix portability issue in mkmerakifw-old
    
    Fixes build failure on Mac OS X
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 tools/firmware-utils/src/mkmerakifw-old.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/firmware-utils/src/mkmerakifw-old.c b/tools/firmware-utils/src/mkmerakifw-old.c
index 01b9b31..05317c2 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));
 }
 



More information about the lede-commits mailing list