--- ray/src/hd/genrhenv.c 1998/01/06 21:48:18 3.2 +++ ray/src/hd/genrhenv.c 2003/05/29 16:26:21 3.4 @@ -1,9 +1,6 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: genrhenv.c,v 3.4 2003/05/29 16:26:21 greg Exp $"; #endif - /* * Create a closed environment from a holodeck section */ @@ -58,7 +55,6 @@ openholo(fname, sect) /* open holodeck section for in char *fname; int sect; { - extern long ftell(); FILE *fp; int fd; int4 nextloc; @@ -77,7 +73,7 @@ int sect; nextloc = ftell(fp); /* get stdio position */ fclose(fp); /* done with stdio */ for (n = 0; nextloc > 0L; n++) { /* get the indicated section */ - lseek(fd, (long)nextloc, 0); + lseek(fd, (off_t)nextloc, 0); read(fd, (char *)&nextloc, sizeof(nextloc)); if (n == sect) { hdinit(fd, NULL); @@ -324,6 +320,7 @@ int sect; } +void eputs(s) /* put error message to stderr */ register char *s; {