From a481e498b75728465317624b5b6f71c786010495 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 4 Mar 2010 22:35:13 +0100 Subject: 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. --- include/l1a_l23_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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.. -- cgit v1.2.3