diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-16 00:58:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-16 00:58:11 +0200 |
commit | 8dc0e1929e3af3b1673e5a8e486808386400c020 (patch) | |
tree | 0550684999338af8f15de76c5599f9dead3fdfd6 /util-linux/volume_id/ntfs.c | |
parent | f2c184be835fbcbd04d06fce22783c6a5d37b563 (diff) | |
download | busybox-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/ntfs.c')
-rw-r--r-- | util-linux/volume_id/ntfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/volume_id/ntfs.c b/util-linux/volume_id/ntfs.c index 6e8f1dd3d..3b3e97347 100644 --- a/util-linux/volume_id/ntfs.c +++ b/util-linux/volume_id/ntfs.c | |||
@@ -45,7 +45,7 @@ struct ntfs_super_block { | |||
45 | uint8_t reserved2[3]; | 45 | uint8_t reserved2[3]; |
46 | uint8_t volume_serial[8]; | 46 | uint8_t volume_serial[8]; |
47 | uint16_t checksum; | 47 | uint16_t checksum; |
48 | } __attribute__((__packed__)); | 48 | } PACKED; |
49 | 49 | ||
50 | struct master_file_table_record { | 50 | struct master_file_table_record { |
51 | uint8_t magic[4]; | 51 | uint8_t magic[4]; |
@@ -58,7 +58,7 @@ struct master_file_table_record { | |||
58 | uint16_t flags; | 58 | uint16_t flags; |
59 | uint32_t bytes_in_use; | 59 | uint32_t bytes_in_use; |
60 | uint32_t bytes_allocated; | 60 | uint32_t bytes_allocated; |
61 | } __attribute__((__packed__)); | 61 | } PACKED; |
62 | 62 | ||
63 | struct file_attribute { | 63 | struct file_attribute { |
64 | uint32_t type; | 64 | uint32_t type; |
@@ -70,13 +70,13 @@ struct file_attribute { | |||
70 | uint16_t instance; | 70 | uint16_t instance; |
71 | uint32_t value_len; | 71 | uint32_t value_len; |
72 | uint16_t value_offset; | 72 | uint16_t value_offset; |
73 | } __attribute__((__packed__)); | 73 | } PACKED; |
74 | 74 | ||
75 | struct volume_info { | 75 | struct volume_info { |
76 | uint64_t reserved; | 76 | uint64_t reserved; |
77 | uint8_t major_ver; | 77 | uint8_t major_ver; |
78 | uint8_t minor_ver; | 78 | uint8_t minor_ver; |
79 | } __attribute__((__packed__)); | 79 | } PACKED; |
80 | 80 | ||
81 | #define MFT_RECORD_VOLUME 3 | 81 | #define MFT_RECORD_VOLUME 3 |
82 | #define MFT_RECORD_ATTR_VOLUME_NAME 0x60 | 82 | #define MFT_RECORD_ATTR_VOLUME_NAME 0x60 |