--- ray/src/hd/rholo.c 2019/10/21 18:19:32 3.81 +++ ray/src/hd/rholo.c 2025/01/21 22:30:01 3.84 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rholo.c,v 3.81 2019/10/21 18:19:32 greg Exp $"; +static const char RCSid[] = "$Id: rholo.c,v 3.84 2025/01/21 22:30:01 greg Exp $"; #endif /* * Radiance holodeck generation controller @@ -229,7 +229,6 @@ resfmode( /* restrict open file access mode */ static void initrholo(void) /* get our holodeck running */ { - extern int global_packet(); int i; /* close holodeck on exec() */ fcntl(hdlist[0]->fd, F_SETFD, FD_CLOEXEC); @@ -394,7 +393,6 @@ setdefaults( /* set default values */ HDGRID *gp ) { - extern char *atos(); int i; int n; double len[3], d; @@ -466,6 +464,7 @@ creatholo( /* create a holodeck output file */ newheader("RADIANCE", fp); fprintf(fp, "SOFTWARE= %s\n", VersionID); printvars(fp); + fputendian(fp); fputformat(HOLOFMT, fp); fputc('\n', fp); putw(HOLOMAGIC, fp); /* put magic number */ @@ -631,8 +630,7 @@ badvalue( /* report bad variable value and exit */ void -eputs(s) /* put error message to stderr */ -char *s; +eputs(const char *s) /* put error message to stderr */ { static int midline = 0; @@ -651,8 +649,7 @@ char *s; void -quit(ec) /* exit program gracefully */ -int ec; +quit(int ec) /* exit program gracefully */ { int status = 0;