--- ray/src/rt/colortab.c 2003/02/25 02:47:22 2.6 +++ ray/src/rt/colortab.c 2003/05/13 17:58:33 2.7 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: colortab.c,v 2.6 2003/02/25 02:47:22 greg Exp $"; +static const char RCSid[] = "$Id: colortab.c,v 2.7 2003/05/13 17:58:33 greg Exp $"; #endif /* * colortab.c - allocate and control dynamic color table. @@ -84,7 +84,7 @@ int ncolors; /* partition color space */ cut(ctree, 0, CLRCUBE, 0, ncolors); /* clear histogram */ - bzero((char *)histo, sizeof(histo)); + bzero((void *)histo, sizeof(histo)); /* return number of colors used */ return(ncolors); } @@ -161,9 +161,9 @@ void set_cmap(rmap, gmap, bmap) /* set custom color correction map */ BYTE *rmap, *gmap, *bmap; { - bcopy((char *)rmap, (char *)clrmap[RED], 256); - bcopy((char *)gmap, (char *)clrmap[GRN], 256); - bcopy((char *)bmap, (char *)clrmap[BLU], 256); + bcopy((void *)rmap, (void *)clrmap[RED], 256); + bcopy((void *)gmap, (void *)clrmap[GRN], 256); + bcopy((void *)bmap, (void *)clrmap[BLU], 256); } @@ -193,7 +193,7 @@ int c0, c1; } /* split box */ *tree = split(box); - bcopy((char *)box, (char *)kb, sizeof(kb)); + bcopy((void *)box, (void *)kb, sizeof(kb)); /* do left (lesser) branch */ kb[prim(*tree)][1] = part(*tree); cut(tree+(1<>1);