ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/mkillum2.c
(Generate patch)

Comparing ray/src/gen/mkillum2.c (file contents):
Revision 2.9 by greg, Sat Feb 22 02:07:24 2003 UTC vs.
Revision 2.11 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Routines to do the actual calculation for mkillum
6   */
7  
8 < #include  "mkillum.h"
8 > #include <string.h>
9  
10 + #include  "mkillum.h"
11   #include  "face.h"
11
12   #include  "cone.h"
13
13   #include  "random.h"
14  
15  
# Line 300 | Line 299 | register struct rtproc  *rt;
299  
300          if (rt->nrays <= 0)
301                  return;
302 <        bzero(rt->buf+6*rt->nrays, 6*sizeof(float));
302 >        memset(rt->buf+6*rt->nrays, '\0', 6*sizeof(float));
303          errno = 0;
304 <        if ( process(rt->pd, (char *)rt->buf, (char *)rt->buf,
304 >        if ( process(&(rt->pd), (char *)rt->buf, (char *)rt->buf,
305                          3*sizeof(float)*(rt->nrays+1),
306                          6*sizeof(float)*(rt->nrays+1)) <
307                          3*sizeof(float)*(rt->nrays+1) )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines