summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-06-16 10:53:50 +1000
committerNeil Brown <neilb@suse.de>2006-06-16 10:53:50 +1000
commit067db4dfcd6830e076a759ec2cdcbf2c6566be6e (patch)
tree532dd5af72ffda94e724064dcde24a9ec8f082e9
parenteed35d6661e9e53b7ec6d1312baa41bcd4d631ca (diff)
downloadmdadm-067db4dfcd6830e076a759ec2cdcbf2c6566be6e.tar.gz
mdadm-067db4dfcd6830e076a759ec2cdcbf2c6566be6e.tar.xz
mdadm-067db4dfcd6830e076a759ec2cdcbf2c6566be6e.zip
Fix offsetof macro for 64bit hosts
-rw-r--r--ANNOUNCE-2.5.10
-rw-r--r--super1.c2
2 files changed, 1 insertions, 1 deletions
diff --git a/ANNOUNCE-2.5.1 b/ANNOUNCE-2.5.1
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ANNOUNCE-2.5.1
diff --git a/super1.c b/super1.c
index 28332cd..9dc6644 100644
--- a/super1.c
+++ b/super1.c
@@ -104,7 +104,7 @@ struct mdp_superblock_1 {
#define MD_FEATURE_ALL (1|2|4)
#ifndef offsetof
-#define offsetof(t,f) ((int)&(((t*)0)->f))
+#define offsetof(t,f) ((size_t)&(((t*)0)->f))
#endif
static unsigned int calc_sb_1_csum(struct mdp_superblock_1 * sb)
{