diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2014-11-18 23:19:54 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2014-11-18 23:19:54 +0100 |
commit | b286e79ddb7340540bae07744fea915efbe67b9d (patch) | |
tree | 2c0ad144d9c7140c469d1f5ea37be8acae67384c | |
parent | e443393aa52ed662b594284d9d053299dace58fb (diff) | |
download | 0xFFFF-b286e79ddb7340540bae07744fea915efbe67b9d.tar.bz2 |
cold-flash: struct xloader_msg must be packed
-rw-r--r-- | src/cold-flash.c | 2 |
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 |