From 452024ba83452eee5accdbe5506ab3683cd4790c Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 9 Dec 2016 12:21:45 +0200 Subject: [PATCH] monitor/rfcomm: Remove packed attribute from structs These structs do not represent the raw PDU format thus they don't need to be the exact same size. --- monitor/rfcomm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monitor/rfcomm.c b/monitor/rfcomm.c index b32ad40a8..fd7bbdc0f 100644 --- a/monitor/rfcomm.c +++ b/monitor/rfcomm.c @@ -90,13 +90,13 @@ struct rfcomm_lhdr { uint16_t length; uint8_t fcs; uint8_t credits; /* only for UIH frame */ -} __attribute__((packed)); +}; struct rfcomm_lmsc { uint8_t dlci; uint8_t v24_sig; uint8_t break_sig; -} __attribute__((packed)); +}; struct rfcomm_rpn { uint8_t dlci; @@ -111,16 +111,16 @@ struct rfcomm_rpn { struct rfcomm_rls { uint8_t dlci; uint8_t error; -} __attribute__((packed)); +}; struct rfcomm_nsc { uint8_t cmd_type; -} __attribute__((packed)); +}; struct rfcomm_lmcc { uint8_t type; uint16_t length; -} __attribute__((packed)); +}; struct rfcomm_frame { struct rfcomm_lhdr hdr; -- 2.47.3