--- ray/src/hd/genrhenv.c 1998/01/06 15:09:33 3.1 +++ ray/src/hd/genrhenv.c 2003/02/22 02:07:24 3.3 @@ -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.3 2003/02/22 02:07:24 greg Exp $"; #endif - /* * Create a closed environment from a holodeck section */ @@ -42,6 +39,8 @@ char *argv[]; error(SYSTEM, "out of memory in main"); while (n--) gabmi[n].h = ourhp; + fputs("# ", stdout); + printargs(argc, argv, stdout); hdcachesize = 0; for (n = 0; n < 6; n++) mkwall(argv[2], sect, n); @@ -75,7 +74,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); @@ -322,6 +321,7 @@ int sect; } +void eputs(s) /* put error message to stderr */ register char *s; {