aboutsummaryrefslogtreecommitdiff
path: root/util-linux/volume_id/udf.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-16 00:58:11 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-16 00:58:11 +0200
commit8dc0e1929e3af3b1673e5a8e486808386400c020 (patch)
tree0550684999338af8f15de76c5599f9dead3fdfd6 /util-linux/volume_id/udf.c
parentf2c184be835fbcbd04d06fce22783c6a5d37b563 (diff)
downloadbusybox-8dc0e1929e3af3b1673e5a8e486808386400c020.tar.gz
use PACKED macro insted of open-coding GCC-ism
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/volume_id/udf.c')
-rw-r--r--util-linux/volume_id/udf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util-linux/volume_id/udf.c b/util-linux/volume_id/udf.c
index e272e1923..a6e719a3c 100644
--- a/util-linux/volume_id/udf.c
+++ b/util-linux/volume_id/udf.c
@@ -30,28 +30,28 @@ struct volume_descriptor {
uint16_t crc;
uint16_t crc_len;
uint32_t location;
- } __attribute__((__packed__)) tag;
+ } PACKED tag;
union {
struct anchor_descriptor {
uint32_t length;
uint32_t location;
- } __attribute__((__packed__)) anchor;
+ } PACKED anchor;
struct primary_descriptor {
uint32_t seq_num;
uint32_t desc_num;
struct dstring {
uint8_t clen;
uint8_t c[31];
- } __attribute__((__packed__)) ident;
- } __attribute__((__packed__)) primary;
- } __attribute__((__packed__)) type;
-} __attribute__((__packed__));
+ } PACKED ident;
+ } PACKED primary;
+ } PACKED type;
+} PACKED;
struct volume_structure_descriptor {
uint8_t type;
uint8_t id[5];
uint8_t version;
-} __attribute__((__packed__));
+} PACKED;
#define UDF_VSD_OFFSET 0x8000