*** mformat.c.orig Thu Sep 10 07:59:16 1992 --- mformat.c Mon Oct 3 11:24:44 1994 *************** *** 27,33 **** struct bootsector boot; int i, c, oops, tracks, heads, sectors, fat_len, dir_len, clus_size; int tot_sectors, num_clus, fat_guess; ! long time(), now, lseek(); char drive, *name, *expand(); char *strncpy(), *memset(), *memcpy(); unsigned char media, label[12], buf[MSECTOR_SIZE]; --- 27,34 ---- struct bootsector boot; int i, c, oops, tracks, heads, sectors, fat_len, dir_len, clus_size; int tot_sectors, num_clus, fat_guess; ! long time(), now; ! off_t lseek(); char drive, *name, *expand(); char *strncpy(), *memset(), *memcpy(); unsigned char media, label[12], buf[MSECTOR_SIZE]; *************** *** 211,217 **** boot.nheads[1] = heads / 0x100; /* write the boot */ ! lseek(fd, 0L, 0); write(fd, (char *) &boot, MSECTOR_SIZE); /* first fat */ memset((char *) buf, '\0', MSECTOR_SIZE); --- 212,218 ---- boot.nheads[1] = heads / 0x100; /* write the boot */ ! lseek(fd, (off_t) 0, 0); write(fd, (char *) &boot, MSECTOR_SIZE); /* first fat */ memset((char *) buf, '\0', MSECTOR_SIZE);