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

Comparing ray/src/util/glareval.c (file contents):
Revision 2.4 by gregl, Wed Jul 9 11:22:11 1997 UTC vs.
Revision 2.6 by greg, Sat Feb 22 02:07:30 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 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   * Compute pixels for glare calculation
6   */
7  
8   #include "glare.h"
12 #include "resolu.h"
9                                          /* maximum rtrace buffer size */
10   #define MAXPIX          (4096/(6*sizeof(float)))
11  
# Line 265 | Line 261 | int    np;
261                                  progname, np);
262   #endif
263          bzero(pb+6*np, 6*sizeof(float));
264 <        if (process(rt_pd, pb, pb, 3*sizeof(float)*(np+1),
264 >        if (process(rt_pd, (char *)pb, (char *)pb, 3*sizeof(float)*(np+1),
265                          6*sizeof(float)*(np+1)) < 3*sizeof(float)*(np+1)) {
266                  fprintf(stderr, "%s: rtrace communication error\n",
267                                  progname);
# Line 274 | Line 270 | int    np;
270   }
271  
272  
273 + int
274   getexpos(s)                     /* get exposure from header line */
275   char    *s;
276   {
# Line 285 | Line 282 | char   *s;
282                  formatval(fmt, s);
283                  wrongformat = strcmp(fmt, COLRFMT);
284          }
285 +        return(0);
286   }
287  
288  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines