summaryrefslogtreecommitdiffstats
path: root/src/cold-flash.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2014-11-18 23:19:54 +0100
committerPali Rohár <pali.rohar@gmail.com>2014-11-18 23:19:54 +0100
commitb286e79ddb7340540bae07744fea915efbe67b9d (patch)
tree2c0ad144d9c7140c469d1f5ea37be8acae67384c /src/cold-flash.c
parente443393aa52ed662b594284d9d053299dace58fb (diff)
download0xFFFF-b286e79ddb7340540bae07744fea915efbe67b9d.tar.bz2
cold-flash: struct xloader_msg must be packed
Diffstat (limited to 'src/cold-flash.c')
-rw-r--r--src/cold-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cold-flash.c b/src/cold-flash.c
index 6441187..8874b32 100644
--- a/src/cold-flash.c
+++ b/src/cold-flash.c
@@ -130,7 +130,7 @@ struct xloader_msg {
uint32_t size; /* 4 bytes - size of file */
uint32_t crc1; /* 4 bytes - crc32 of file */
uint32_t crc2; /* 4 bytes - crc32 of first 12 bytes of message */
-};
+} __attribute__((__packed__));
#define XLOADER_MSG_TYPE_PING 0x6301326E
#define XLOADER_MSG_TYPE_SEND 0x6302326E