From 36659fda1f05e735839b22d9e8892731fb46d7b0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 5 Feb 2010 14:40:23 +0100 Subject: *: fix 1/4 remaining aliasing warnings Signed-off-by: Denys Vlasenko --- util-linux/fdisk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util-linux') diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index c9f57c6d6..a731316ce 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -625,7 +625,7 @@ write_sector(sector_t secno, const void *buf) #include "fdisk_aix.c" -typedef struct { +struct sun_partition { unsigned char info[128]; /* Informative text string */ unsigned char spare0[14]; struct sun_info { @@ -651,7 +651,8 @@ typedef struct { } partitions[8]; unsigned short magic; /* Magic number */ unsigned short csum; /* Label xor'd checksum */ -} sun_partition; +} FIX_ALIASING; +typedef struct sun_partition sun_partition; #define sunlabel ((sun_partition *)MBRbuffer) STATIC_OSF void bsd_select(void); STATIC_OSF void xbsd_print_disklabel(int); -- cgit v1.2.3