[kpartx] shut a build warning
authorroot <root@xa-s05.(none)>
Tue, 23 Aug 2005 07:54:38 +0000 (09:54 +0200)
committerroot <root@xa-s05.(none)>
Tue, 23 Aug 2005 07:54:38 +0000 (09:54 +0200)
kpartx/dos.c

index 2f4e8a9..ae8ecba 100644 (file)
@@ -26,7 +26,7 @@ read_extended_partition(int fd, struct partition *ep,
                if (++loopct > 100)
                        return n;
 
-               bp = getblock(fd, here);
+               bp = (unsigned char *)getblock(fd, here);
                if (bp == NULL)
                        return n;
 
@@ -74,7 +74,7 @@ read_dos_pt(int fd, struct slice all, struct slice *sp, int ns) {
        int i, n=0;
        unsigned char *bp;
 
-       bp = getblock(fd, offset);
+       bp = (unsigned char *)getblock(fd, offset);
        if (bp == NULL)
                return -1;