--- ray/src/hd/rhinfo.c 2003/05/29 16:26:22 3.6 +++ ray/src/hd/rhinfo.c 2003/10/22 02:06:34 3.9 @@ -1,10 +1,11 @@ #ifndef lint -static const char RCSid[] = "$Id: rhinfo.c,v 3.6 2003/05/29 16:26:22 greg Exp $"; +static const char RCSid[] = "$Id: rhinfo.c,v 3.9 2003/10/22 02:06:34 greg Exp $"; #endif /* * Get general information on holodeck file */ +#include "platform.h" #include "holo.h" #ifndef NHBINS @@ -40,7 +41,7 @@ FILE *fout; FILE *fp; HOLO *hdsect; int fd; - int4 nextloc; + int32 nextloc; int n; /* open holodeck file */ if ((fp = fopen(fname, "r")) == NULL) { @@ -56,7 +57,7 @@ FILE *fout; nextloc = ftell(fp); /* get stdio position */ fclose(fp); /* done with stdio */ for (n = 0; nextloc > 0L; n++) { /* get the section(s) */ - lseek(fd, (off_t)nextloc, 0); + lseek(fd, (off_t)nextloc, SEEK_SET); read(fd, (char *)&nextloc, sizeof(nextloc)); fprintf(fout, "Section %d:\n", n); hdsect = hdinit(fd, NULL); /* load section directory */