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/md.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/md.c')
-rw-r--r-- | common/ratp/md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/ratp/md.c b/common/ratp/md.c index 9b8fc2bc50..5b877947c9 100644 --- a/common/ratp/md.c +++ b/common/ratp/md.c @@ -46,7 +46,7 @@ struct ratp_bb_md_request { uint16_t path_size; uint16_t path_offset; uint8_t buffer[]; -} __attribute__((packed)); +} __packed; struct ratp_bb_md_response { struct ratp_bb header; @@ -55,7 +55,7 @@ struct ratp_bb_md_response { uint16_t data_size; uint16_t data_offset; uint8_t buffer[]; -} __attribute__((packed)); +} __packed; extern char *mem_rw_buf; |