--- ray/src/px/clrtab.c 1994/06/10 12:51:16 2.10 +++ ray/src/px/clrtab.c 2003/02/22 02:07:27 2.12 @@ -1,9 +1,6 @@ -/* Copyright (c) 1993 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: clrtab.c,v 2.12 2003/02/22 02:07:27 greg Exp $"; #endif - /* * Simple median-cut color quantization based on colortab.c */ @@ -40,7 +37,11 @@ static int CLRCUBE[3][2] = {0,NRED,0,NGRN,0,NBLU}; #endif #endif +static cut(), mktabent(), closest(), addneigh(), setclosest(); +static int split(); +static unsigned dist(); + new_histo(n) /* clear our histogram */ int n; { @@ -118,7 +119,7 @@ int n; if (n != N) { /* get error propogation array */ if (N) { - free((char *)cerr); + free((void *)cerr); cerr = NULL; } if (n)