--- ray/src/px/ra_pr24.c 1994/02/27 10:17:15 2.8 +++ ray/src/px/ra_pr24.c 2003/02/22 02:07:28 2.9 @@ -1,9 +1,6 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: ra_pr24.c,v 2.9 2003/02/22 02:07:28 greg Exp $"; #endif - /* * program to convert between RADIANCE and 24-bit rasterfiles. */ @@ -14,6 +11,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include #endif +#include + #include #include "rasterfile.h" @@ -22,8 +21,6 @@ static char SCCSid[] = "$SunId$ LBL"; #include "resolu.h" -extern char *malloc(); - double gamcor = 2.2; /* gamma correction */ int bradj = 0; /* brightness adjustment */ @@ -177,7 +174,7 @@ int pad; quiterr("error writing Radiance picture"); } /* free scanline */ - free((char *)scanout); + free((void *)scanout); } @@ -223,5 +220,5 @@ int pad; quiterr("error writing rasterfile"); } /* free scanline */ - free((char *)scanin); + free((void *)scanin); }