--- ray/src/px/pcond3.c 2003/02/22 02:07:27 3.11 +++ ray/src/px/pcond3.c 2003/06/30 14:59:12 3.14 @@ -1,10 +1,12 @@ #ifndef lint -static const char RCSid[] = "$Id: pcond3.c,v 3.11 2003/02/22 02:07:27 greg Exp $"; +static const char RCSid[] = "$Id: pcond3.c,v 3.14 2003/06/30 14:59:12 schorsch Exp $"; #endif /* * Routines for computing and applying brightness mapping. */ +#include + #include "pcond.h" @@ -54,7 +56,7 @@ FILE *fp; if (nfixations % FIXHUNK == 0) { if (nfixations) fixlst = (short (*)[2]) - realloc((char *)fixlst, + realloc((void *)fixlst, (nfixations+FIXHUNK)* 2*sizeof(short)); else @@ -350,7 +352,7 @@ mkbrmap() /* make dynamic range map */ double ceiling, trimmings; register int i; /* copy initial histogram */ - bcopy((char *)bwhist, (char *)modhist, sizeof(modhist)); + memcpy((void *)modhist, (void *)bwhist, sizeof(modhist)); s = (bwmax - bwmin)/HISTRES; /* s is delta b */ /* loop until satisfactory */ do {