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

Fixes build failure on Mac OS X

Signed-off-by: Felix Fietkau <nbd@nbd.name>
master
Felix Fietkau 8 years ago
parent a84d51c85d
commit 64568cac91
  1. 2
      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));
}

Loading…
Cancel
Save