--- ray/src/hd/rhinfo.c 1999/02/03 10:48:06 3.4 +++ ray/src/hd/rhinfo.c 2003/05/29 16:26:22 3.6 @@ -1,9 +1,6 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: rhinfo.c,v 3.6 2003/05/29 16:26:22 greg Exp $"; #endif - /* * Get general information on holodeck file */ @@ -40,7 +37,6 @@ gethdinfo(fname, fout) /* get information on holodeck char *fname; FILE *fout; { - extern long ftell(); FILE *fp; HOLO *hdsect; int fd; @@ -60,7 +56,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, (long)nextloc, 0); + lseek(fd, (off_t)nextloc, 0); read(fd, (char *)&nextloc, sizeof(nextloc)); fprintf(fout, "Section %d:\n", n); hdsect = hdinit(fd, NULL); /* load section directory */