X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=util.c;h=26254c086881fa21c6e9d930fde04f11f68c242b;hp=abc576ed3281f07519e97718382e23dfe363caae;hb=881990a2e440d58d2c1d070e9005225f56d21260;hpb=22a88995861f93110802ee49c5d7bc28250b46ce diff --git a/util.c b/util.c index abc576ed..26254c08 100644 --- a/util.c +++ b/util.c @@ -229,7 +229,7 @@ int check_reiser(int fd, char *name) * */ unsigned char sb[1024]; - int size; + unsigned long size; if (lseek(fd, 64*1024, 0) != 64*1024) return 0; if (read(fd, sb, 1024) != 1024) @@ -239,7 +239,7 @@ int check_reiser(int fd, char *name) 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; - fprintf(stderr, " size = %dK\n", size*4); + fprintf(stderr, " size = %luK\n", size*4); return 1; }