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-w32-8dc0e1929e3af3b1673e5a8e486808386400c020.tar.gz
busybox-w32-8dc0e1929e3af3b1673e5a8e486808386400c020.tar.bz2
busybox-w32-8dc0e1929e3af3b1673e5a8e486808386400c020.zip
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 {
30 uint16_t crc; 30 uint16_t crc;
31 uint16_t crc_len; 31 uint16_t crc_len;
32 uint32_t location; 32 uint32_t location;
33 } __attribute__((__packed__)) tag; 33 } PACKED tag;
34 union { 34 union {
35 struct anchor_descriptor { 35 struct anchor_descriptor {
36 uint32_t length; 36 uint32_t length;
37 uint32_t location; 37 uint32_t location;
38 } __attribute__((__packed__)) anchor; 38 } PACKED anchor;
39 struct primary_descriptor { 39 struct primary_descriptor {
40 uint32_t seq_num; 40 uint32_t seq_num;
41 uint32_t desc_num; 41 uint32_t desc_num;
42 struct dstring { 42 struct dstring {
43 uint8_t clen; 43 uint8_t clen;
44 uint8_t c[31]; 44 uint8_t c[31];
45 } __attribute__((__packed__)) ident; 45 } PACKED ident;
46 } __attribute__((__packed__)) primary; 46 } PACKED primary;
47 } __attribute__((__packed__)) type; 47 } PACKED type;
48} __attribute__((__packed__)); 48} PACKED;
49 49
50struct volume_structure_descriptor { 50struct volume_structure_descriptor {
51 uint8_t type; 51 uint8_t type;
52 uint8_t id[5]; 52 uint8_t id[5];
53 uint8_t version; 53 uint8_t version;
54} __attribute__((__packed__)); 54} PACKED;
55 55
56#define UDF_VSD_OFFSET 0x8000 56#define UDF_VSD_OFFSET 0x8000
57 57