--- ray/src/px/ra_t8.c 1994/11/21 15:55:55 2.8 +++ ray/src/px/ra_t8.c 2003/05/13 17:58:33 2.11 @@ -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_t8.c,v 2.11 2003/05/13 17:58:33 greg Exp $"; #endif - /* * ra_t8.c - program to convert between RADIANCE and * Targa 8-bit color-mapped images. @@ -13,6 +10,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "color.h" #include "resolu.h" @@ -27,7 +26,6 @@ static char SCCSid[] = "$SunId$ LBL"; #ifndef BSD #define bcopy(s,d,n) (void)memcpy(d,s,n) -extern char *memcpy(); #endif #define goodpic(h) (my_imType(h) && my_mapType(h)) @@ -195,6 +193,7 @@ char *err; } +void eputs(s) char *s; { @@ -202,6 +201,7 @@ char *s; } +void quit(code) int code; { @@ -344,8 +344,8 @@ struct hdStruct *hp; if (fwritecolrs(scanline, xmax, stdout) < 0) quiterr("error writing RADIANCE file"); } - free((char *)scanline); - free((char *)tarData); + free((void *)scanline); + free((void *)tarData); }