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 |
|
* Gather samples and compute glare sources. |
6 |
|
*/ |
78 |
|
if (left < h) |
79 |
|
addsrcspan(newspan(left,h,v,spanbr)); |
80 |
|
} |
81 |
< |
free((char *)spanbr); |
81 |
> |
free((void *)spanbr); |
82 |
|
close_allsrcs(); |
83 |
|
} |
84 |
|
|
238 |
|
sp->brt = (sp->brt*sp->dom + ap->brt*ap->dom) |
239 |
|
/ (sp->dom + ap->dom); |
240 |
|
} |
241 |
< |
free((char *)ap); |
241 |
> |
free((void *)ap); |
242 |
|
} |
243 |
|
|
244 |
|
|
381 |
|
} |
382 |
|
freespans(sp); |
383 |
|
if (sp->dom <= FTINY) { /* must be right at edge of image */ |
384 |
< |
free((char *)sp); |
384 |
> |
free((void *)sp); |
385 |
|
return; |
386 |
|
} |
387 |
|
sp->brt /= (double)n; |
455 |
|
indirect[i].n += d; |
456 |
|
} |
457 |
|
freespans(s); |
458 |
< |
free((char *)s); |
458 |
> |
free((void *)s); |
459 |
|
} |
460 |
|
|
461 |
|
|
466 |
|
|
467 |
|
while ((ss = sp->first) != NULL) { |
468 |
|
sp->first = ss->next; |
469 |
< |
free((char *)ss); |
469 |
> |
free((void *)ss); |
470 |
|
} |
471 |
|
} |