diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-09-12 15:45:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-17 09:50:41 +0200 |
commit | 51c2a0a8d4513b8ea3b852dfc7915098265f370e (patch) | |
tree | 878934d62bb3e1760101431823b642895dd7b406 /common/ratp/mw.c | |
parent | 1743f3716b1ef1b0304ff2bb933716586d2c9a68 (diff) | |
download | barebox-51c2a0a8d4513b8ea3b852dfc7915098265f370e.tar.gz barebox-51c2a0a8d4513b8ea3b852dfc7915098265f370e.tar.xz |
ratp: use __packed instead of the full form
Just a minor coding style change to follow the suggestions given in
patch reviews for other RATP commands.
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/ratp/mw.c')
-rw-r--r-- | common/ratp/mw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/ratp/mw.c b/common/ratp/mw.c index 7d6df3d0a0..3234d7dacb 100644 --- a/common/ratp/mw.c +++ b/common/ratp/mw.c @@ -47,7 +47,7 @@ struct ratp_bb_mw_request { uint16_t data_size; uint16_t data_offset; uint8_t buffer[]; -} __attribute__((packed)); +} __packed; struct ratp_bb_mw_response { struct ratp_bb header; @@ -55,7 +55,7 @@ struct ratp_bb_mw_response { uint32_t errno; uint16_t written; uint8_t buffer[]; -} __attribute__((packed)); +} __packed; static int ratp_cmd_mw(const struct ratp_bb *req, int req_len, struct ratp_bb **rsp, int *rsp_len) |