*** buf_read.c.orig Thu Sep 10 07:59:11 1992 --- buf_read.c Mon Oct 3 11:25:58 1994 *************** *** 24,36 **** int length; unsigned char *buf_ptr, *disk_ptr; char *memcpy(); ! long where, tail, lseek(); void perror(), exit(), disk_flush(); /* don't use cache? */ if (disk_size == 1) { where = (start * MSECTOR_SIZE) + disk_offset; ! if (lseek(fd, where, 0) < 0) { perror("disk_read: lseek"); exit(1); } --- 24,37 ---- int length; unsigned char *buf_ptr, *disk_ptr; char *memcpy(); ! long where, tail; ! off_t lseek(); void perror(), exit(), disk_flush(); /* don't use cache? */ if (disk_size == 1) { where = (start * MSECTOR_SIZE) + disk_offset; ! if (lseek(fd, (off_t) where, 0) < 0) { perror("disk_read: lseek"); exit(1); } *************** *** 55,61 **** length = disk_size * MSECTOR_SIZE; /* move to next location */ ! if (lseek(fd, where, 0) < 0) { perror("disk_read: lseek"); exit(1); } --- 56,62 ---- length = disk_size * MSECTOR_SIZE; /* move to next location */ ! if (lseek(fd, (off_t) where, 0) < 0) { perror("disk_read: lseek"); exit(1); }