struct bsd_partition *p;
unsigned int offset = all.start;
int max_partitions;
- char *bp;
+ unsigned char *bp;
int n = 0;
bp = getblock(fd, offset+1); /* 1 sector suffices */
static
struct block {
unsigned int secnr;
- char *block;
+ unsigned char *block;
struct block *next;
} *blockhead;
-char *
+unsigned char *
getblock(int fd, unsigned int secnr) {
struct block *bp;
bp->secnr = secnr;
bp->next = blockhead;
blockhead = bp;
- bp->block = (char *) xmalloc(1024);
+ bp->block = (unsigned char *) xmalloc(1024);
if (read(fd, bp->block, 1024) != 1024) {
fprintf(stderr, "read error, sector %d\n", secnr);
bp->block = NULL;
extern ptreader read_dos_pt, read_bsd_pt, read_solaris_pt, read_unixware_pt, read_gpt_pt;
-char *getblock(int fd, unsigned int secnr);
+unsigned char *getblock(int fd, unsigned int secnr);
static inline int
four2int(unsigned char *p) {
struct solaris_x86_slice *s;
unsigned int offset = all.start;
int i, n;
- char *bp;
+ unsigned char *bp;
bp = getblock(fd, offset+1); /* 1 sector suffices */
if (bp == NULL)
struct unixware_disklabel *l;
struct unixware_slice *p;
unsigned int offset = all.start;
- char *bp;
+ unsigned char *bp;
int n = 0;
bp = getblock(fd, offset+29); /* 1 sector suffices */