upstream chose to fix things the other way in 1.12.0, thus the following patch is better (and less intrusive):
diff -urNad mdadm-1.9.0/mdadm.h /tmp/dpep.jkAdJw/mdadm-1.9.0/mdadm.h
--- mdadm-1.9.0/mdadm.h 2005-07-24 15:54:17.574907767 +0200
+++ /tmp/dpep.jkAdJw/mdadm-1.9.0/mdadm.h 2005-07-24 15:54:17.993836179 +0200
@@ -98,7 +98,7 @@
char *devname;
int uuid_set;
- __u32 uuid[4];
+ int uuid[4];
unsigned int super_minor;
diff -urNad mdadm-1.9.0/util.c /tmp/dpep.jkAdJw/mdadm-1.9.0/util.c
--- mdadm-1.9.0/util.c 2005-07-24 15:54:17.574907767 +0200
+++ /tmp/dpep.jkAdJw/mdadm-1.9.0/util.c 2005-07-24 15:54:29.917798532 +0200
@@ -322,7 +322,7 @@
* Magic string "ReIsErFs" or "ReIsEr2Fs" at 52
*
*/
- unsigned char sb[1024];
+ char sb[1024];
int size;
if (lseek(fd, 64*1024, 0) != 64*1024)
return 0;
@@ -511,7 +511,7 @@
unsigned long long newcsum = 0;
unsigned long csum;
int i;
- unsigned int *superc = (int*) super;
+ unsigned int *superc = (unsigned int*) super;
super->sb_csum = 0;
for(i=0; i<MD_SB_BYTES/4; i++)
--
.''`. martin f. krafft <[EMAIL PROTECTED]>
: :' : proud Debian developer and author: http://debiansystem.info
`. `'`
`- Debian - when you have better things to do than fixing a system
Invalid/expired PGP (sub)keys? Use subkeys.pgp.net as keyserver!
"alas, i am dying beyond my means."
-- oscar wilde
signature.asc
Description: Digital signature

