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.7 by greg, Tue Nov 7 17:50:44 1995 UTC vs.
Revision 2.9 by greg, Sat Feb 22 02:07:24 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1995 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Routines to do the actual calculation for mkillum
6   */
# Line 118 | Line 115 | char  *nm;
115                          objerror(ob, WARNING, "bad aspect");
116                          rt->nrays = 0;
117                          freeface(ob);
118 <                        free((char *)distarr);
118 >                        free((void *)distarr);
119                          o_default(ob, il, rt, nm);
120                          return;
121                      }
# Line 137 | Line 134 | char  *nm;
134                  printobj(il->altmat, ob);
135                                  /* clean up */
136          freeface(ob);
137 <        free((char *)distarr);
137 >        free((void *)distarr);
138   #undef MAXMISS
139   }
140  
# Line 207 | Line 204 | char  *nm;
204          } else
205                  printobj(il->altmat, ob);
206                                  /* clean up */
207 <        free((char *)distarr);
207 >        free((void *)distarr);
208   }
209  
210  
# Line 276 | Line 273 | char  *nm;
273                  printobj(il->altmat, ob);
274                                  /* clean up */
275          freecone(ob);
276 <        free((char *)distarr);
276 >        free((void *)distarr);
277   }
278  
279  
# Line 306 | Line 303 | register struct rtproc  *rt;
303          bzero(rt->buf+6*rt->nrays, 6*sizeof(float));
304          errno = 0;
305          if ( process(rt->pd, (char *)rt->buf, (char *)rt->buf,
306 <                        3*sizeof(float)*rt->nrays,
306 >                        3*sizeof(float)*(rt->nrays+1),
307                          6*sizeof(float)*(rt->nrays+1)) <
308 <                        3*sizeof(float)*rt->nrays )
308 >                        3*sizeof(float)*(rt->nrays+1) )
309                  error(SYSTEM, "error reading from rtrace process");
310          i = rt->nrays;
311          while (i--) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines