--- ray/src/px/ra_rgbe.c 1998/10/27 09:08:27 2.9 +++ ray/src/px/ra_rgbe.c 2003/04/23 00:52:34 2.11 @@ -1,15 +1,13 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: ra_rgbe.c,v 2.11 2003/04/23 00:52:34 greg Exp $"; #endif - /* * program to convert from RADIANCE RLE to flat format */ #include #include +#include #include "color.h" #include "resolu.h" @@ -17,7 +15,6 @@ static char SCCSid[] = "$SunId$ LBL"; #include #endif -extern char *malloc(), *realloc(), *tempbuffer(); extern int addhline(); #define dumpheader(fp) fwrite(headlines, 1, headlen, fp) @@ -212,7 +209,7 @@ char *s; frameno = atoi(s+6); n = strlen(s); if (headlen) - headlines = (char *)realloc(headlines, headlen+n+1); + headlines = (char *)realloc((void *)headlines, headlen+n+1); else headlines = (char *)malloc(n+1); if (headlines == NULL) {