summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/cbfstool/cbfstool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index ed6e898f5d..5194061f3c 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -19,7 +19,6 @@
* Foundation, Inc.
*/
-#include <endian.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -272,7 +271,7 @@ static int cbfs_add_master_header(void)
// TODO: when we have a BE target, we'll need to store this as BE
*(uint32_t *)(buffer_get(&image.buffer) +
buffer_size(&image.buffer) - 4) =
- htole32(header_offset);
+ swab32(htonl(header_offset));
ret = 0;