diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-04 22:35:13 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-04 22:35:13 +0100 |
commit | a481e498b75728465317624b5b6f71c786010495 (patch) | |
tree | 53684148018cbeb2ba23aa5f2c4f958c1d879b08 /include | |
parent | d3f6b678c381e8e046be9f0f60a4c212bfdfc9aa (diff) |
l1a_l23_interface.h: struct gsm_time was not packed and had padding
The following issue was found by Andreas Bogk. The l1ctl_info_dl
struct is supposed to be packed but we included the struct gsm_time
which was not packed and added three bytes of padding. Pack the
structure to avoid that.
Diffstat (limited to 'include')
-rw-r--r-- | include/l1a_l23_interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/l1a_l23_interface.h b/include/l1a_l23_interface.h index 7c57cd6f..32fa4881 100644 --- a/include/l1a_l23_interface.h +++ b/include/l1a_l23_interface.h @@ -43,7 +43,7 @@ struct gsm_time { uint8_t t2; /* FN modulo 26 */ uint8_t t3; /* FN modulo 51 */ uint8_t tc; -}; +} __attribute__((packed)); /* * downlink info ... down from the BTS.. |