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

Fixes build failure on Mac OS X

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-09-22 13:37:22 +02:00
parent a84d51c85d
commit 64568cac91

View File

@ -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));
}