--- ray/src/px/biq.c 1991/11/12 16:04:14 2.1 +++ ray/src/px/biq.c 2003/06/30 14:59:12 2.4 @@ -1,15 +1,14 @@ -/* Copyright 1988 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: biq.c,v 2.4 2003/06/30 14:59:12 schorsch Exp $"; #endif - /* * biq.c - simple greyscale quantization. * * 9/19/88 */ +#include + #include "standard.h" #include "ciq.h" @@ -32,7 +31,7 @@ colormap cm; /* quantization colormap */ draw_grey(ocm); - bcopy((char *)color,(char *)cm,sizeof color); + memcpy((void *)cm,(void *)color,sizeof color); } /*----------------------------------------------------------------------*/ @@ -61,6 +60,6 @@ colormap ocm; } picwriteline(y, linout); } - free((char *)linin); - free((char *)linout); + free((void *)linin); + free((void *)linout); }