diff options
author | Neil Brown <neilb@suse.de> | 2006-06-16 10:53:50 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-06-16 10:53:50 +1000 |
commit | 067db4dfcd6830e076a759ec2cdcbf2c6566be6e (patch) | |
tree | 532dd5af72ffda94e724064dcde24a9ec8f082e9 | |
parent | eed35d6661e9e53b7ec6d1312baa41bcd4d631ca (diff) | |
download | mdadm-067db4dfcd6830e076a759ec2cdcbf2c6566be6e.tar.gz mdadm-067db4dfcd6830e076a759ec2cdcbf2c6566be6e.tar.xz mdadm-067db4dfcd6830e076a759ec2cdcbf2c6566be6e.zip |
Fix offsetof macro for 64bit hosts
-rw-r--r-- | ANNOUNCE-2.5.1 | 0 | ||||
-rw-r--r-- | super1.c | 2 |
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 @@ -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) { |