summaryrefslogtreecommitdiffstats
path: root/shlibs/blkid/src/superblocks/ntfs.c
diff options
context:
space:
mode:
authorKarel Zak2009-10-16 02:34:28 +0200
committerKarel Zak2009-10-16 02:34:28 +0200
commit11854e2eff8b15411bbbc35c95dc77d6a722cc6b (patch)
tree723a35834ce281bbea4c867088dc774467368867 /shlibs/blkid/src/superblocks/ntfs.c
parentinclude: use c.h in canonicalize.h (diff)
downloadkernel-qcow2-util-linux-11854e2eff8b15411bbbc35c95dc77d6a722cc6b.tar.gz
kernel-qcow2-util-linux-11854e2eff8b15411bbbc35c95dc77d6a722cc6b.tar.xz
kernel-qcow2-util-linux-11854e2eff8b15411bbbc35c95dc77d6a722cc6b.zip
libblkid: add missing packed attributes
This patch add __attribute__((packed)) to almost all superblock and disk label definitions. Well, in many cases this is not necessary, but it's a cheap way how to keep the code robust... Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/blkid/src/superblocks/ntfs.c')
-rw-r--r--shlibs/blkid/src/superblocks/ntfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/blkid/src/superblocks/ntfs.c b/shlibs/blkid/src/superblocks/ntfs.c
index 21a2d8dd5..eeba2b69c 100644
--- a/shlibs/blkid/src/superblocks/ntfs.c
+++ b/shlibs/blkid/src/superblocks/ntfs.c
@@ -27,7 +27,7 @@ struct ntfs_super_block {
uint8_t reserved2[3];
uint64_t volume_serial;
uint16_t checksum;
-};
+} __attribute__((packed));
struct master_file_table_record {
uint32_t magic;