--- ray/src/gen/mkillum2.c 2003/02/22 02:07:24 2.9 +++ ray/src/gen/mkillum2.c 2003/06/30 14:59:11 2.11 @@ -1,16 +1,15 @@ #ifndef lint -static const char RCSid[] = "$Id: mkillum2.c,v 2.9 2003/02/22 02:07:24 greg Exp $"; +static const char RCSid[] = "$Id: mkillum2.c,v 2.11 2003/06/30 14:59:11 schorsch Exp $"; #endif /* * Routines to do the actual calculation for mkillum */ -#include "mkillum.h" +#include +#include "mkillum.h" #include "face.h" - #include "cone.h" - #include "random.h" @@ -300,9 +299,9 @@ register struct rtproc *rt; if (rt->nrays <= 0) return; - bzero(rt->buf+6*rt->nrays, 6*sizeof(float)); + memset(rt->buf+6*rt->nrays, '\0', 6*sizeof(float)); errno = 0; - if ( process(rt->pd, (char *)rt->buf, (char *)rt->buf, + if ( process(&(rt->pd), (char *)rt->buf, (char *)rt->buf, 3*sizeof(float)*(rt->nrays+1), 6*sizeof(float)*(rt->nrays+1)) < 3*sizeof(float)*(rt->nrays+1) )