--- ray/src/hd/rholo.c 2005/12/15 16:47:16 3.70 +++ ray/src/hd/rholo.c 2005/12/21 07:26:29 3.72 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rholo.c,v 3.70 2005/12/15 16:47:16 greg Exp $"; +static const char RCSid[] = "$Id: rholo.c,v 3.72 2005/12/21 07:26:29 greg Exp $"; #endif /* * Radiance holodeck generation controller @@ -319,7 +319,7 @@ memerr: static int rholo(void) /* holodeck main loop */ { - static long nextfragwarn = 100L<<20; + static off_t nextfragwarn = 100L<<20; static int idle = 0; PACKET *pl = NULL, *plend; off_t fsiz; @@ -534,9 +534,10 @@ loadholo(void) /* start loading a holodeck from fnam error(SYSTEM, errmsg); } if (ncprocs > 0) { - sprintf(errmsg, - "\"%s\" opened read-only; new rays will be discarded", - hdkfile); + sprintf(errmsg, "\"%s\" is read-only", hdkfile); + if (outdev == NULL) + error(USER, errmsg); + strcat(errmsg, "; new rays will be discarded"); error(WARNING, errmsg); force = -1; }