diff options
author | imp <imp@FreeBSD.org> | 2010-02-07 17:05:22 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-02-07 17:05:22 +0000 |
commit | 6c40efb6971f00788aa6af3fe9837b5c29246925 (patch) | |
tree | 83cbcf76fd27414227cd426e16e953b0bc43e48f /bin/pax/tar.h | |
parent | 760cf1fda368db2d149f89b1f413f19386474fb0 (diff) | |
download | FreeBSD-src-6c40efb6971f00788aa6af3fe9837b5c29246925.zip FreeBSD-src-6c40efb6971f00788aa6af3fe9837b5c29246925.tar.gz |
Tell the compiler these structures are aligned to a byte boundary.
All the elements of these structs are char anyway, so it won't hurt
performance.
Bump warns back up to the default.
# we likely should have CTASSERTS to make sure they are the right size.
# but with libarchive based tar maybe we shouldn't bother.
Diffstat (limited to 'bin/pax/tar.h')
-rw-r--r-- | bin/pax/tar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pax/tar.h b/bin/pax/tar.h index 856e26c..df36360 100644 --- a/bin/pax/tar.h +++ b/bin/pax/tar.h @@ -96,7 +96,7 @@ typedef struct { char chksum[CHK_LEN]; /* checksum */ char linkflag; /* norm, hard, or sym. */ char linkname[TNMSZ]; /* linked to name */ -} HD_TAR; +} HD_TAR __aligned(1); #ifdef _PAX_ /* @@ -142,4 +142,4 @@ typedef struct { char devmajor[8]; /* major device number */ char devminor[8]; /* minor device number */ char prefix[TPFSZ]; /* linked to name */ -} HD_USTAR; +} HD_USTAR __aligned(1); |