]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix a few typecasts
authorNeil Brown <neilb@suse.de>
Tue, 14 Jun 2005 06:33:16 +0000 (06:33 +0000)
committerNeil Brown <neilb@suse.de>
Tue, 14 Jun 2005 06:33:16 +0000 (06:33 +0000)
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
ChangeLog
util.c

index 8fdb46fe099422f9408e53b2d2e6e134b69c97b1..6e55e62cd65e688f45c5338af4cd66823038a907 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@ Changes Prior to this release
     -   Allow --auto command line option to set default auto=
        value when running "--assemble --scan".  Previously
        --auto was ignored if --scan was given
+    -   Fix a few type casts
        
 Changes Prior to 1.11.0 release
     -   Fix embarassing bug which causes --add to always fail.
diff --git a/util.c b/util.c
index 05362c7a6d1b13518e08b6c991d1b6885926f44b..c349df8d23c4a0262fd5c3733dc9951f1861e602 100644 (file)
--- a/util.c
+++ b/util.c
@@ -195,8 +195,8 @@ int check_reiser(int fd, char *name)
                return 0;
        if (read(fd, sb, 1024) != 1024)
                return 0;
-       if (strncmp(sb+52, "ReIsErFs",8)!=0 &&
-           strncmp(sb+52, "ReIsEr2Fs",9)!=0)
+       if (strncmp((char*)sb+52, "ReIsErFs",8)!=0 &&
+           strncmp((char*)sb+52, "ReIsEr2Fs",9)!=0)
                return 0;
        fprintf(stderr, Name ": %s appears to contain a reiserfs file system\n",name);
        size = sb[0]|(sb[1]|(sb[2]|sb[3]<<8)<<8)<<8;