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 |
|
*/ |
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 */ |
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) |