--- ray/src/common/lamps.c 1995/10/16 09:21:46 2.5 +++ ray/src/common/lamps.c 2003/02/25 02:47:21 2.7 @@ -1,18 +1,18 @@ -/* Copyright (c) 1990 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: lamps.c,v 2.7 2003/02/25 02:47:21 greg Exp $"; #endif - /* * Load lamp data. */ +#include "copyright.h" + #include +#include #include #include "color.h" -extern char *eindex(), *expsave(), *malloc(); +extern char *eindex(), *expsave(); extern FILE *frlibopen(); typedef struct lamp { @@ -136,10 +136,10 @@ freelamps() /* free our lamps list */ for (lp2 = lp1->next; lp2 != NULL; lp2 = lp2->next) if (lp2->color == lp1->color) lp2->color = NULL; - free((char *)lp1->color); + free((void *)lp1->color); } lp2 = lp1->next; - free((char *)lp1); + free((void *)lp1); } lamps = NULL; }