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:
parent
a84d51c85d
commit
64568cac91
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue