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

Comparing ray/src/px/neuclrtab.c (file contents):
Revision 2.8 by greg, Mon Dec 12 12:19:04 1994 UTC vs.
Revision 2.9 by greg, Sat Feb 22 02:07:27 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1994 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   * Neural-Net quantization algorithm based on work of Anthony Dekker
6   */
# Line 134 | Line 131 | int    ncolors;
131          cpyclrtab();
132          inxbuild();
133                                  /* we're done with our samples */
134 <        free((char *)thesamples);
134 >        free((void *)thesamples);
135                                  /* reset dithering function */
136          neu_dith_colrs((BYTE *)NULL, (COLR *)NULL, 0);
137                                  /* return new color table size */
# Line 174 | Line 171 | int    n;
171  
172          if (n != N) {           /* get error propogation array */
173                  if (N) {
174 <                        free((char *)cerr);
174 >                        free((void *)cerr);
175                          cerr = NULL;
176                  }
177                  if (n)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines