--- ray/src/px/pextrem.c 1993/10/19 17:23:31 2.3 +++ ray/src/px/pextrem.c 2003/02/22 02:07:27 2.5 @@ -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: pextrem.c,v 2.5 2003/02/22 02:07:27 greg Exp $"; #endif - /* * Find extrema points in a Radiance picture. */ @@ -22,9 +19,7 @@ int wrongformat = 0; COLOR expos = WHTCOLOR; -extern char *malloc(); - headline(s) /* check header line */ char *s; { @@ -34,10 +29,10 @@ char *s; if (isformat(s)) { /* format */ formatval(fmt, s); - wrongformat = strcmp(fmt, COLRFMT); + wrongformat = !globmatch(PICFMT, fmt); } if (!orig) - return; + return(0); if (isexpos(s)) { /* exposure */ d = exposval(s); scalecolor(expos, d); @@ -45,6 +40,7 @@ char *s; colcorval(ctmp, s); multcolor(expos, ctmp); } + return(0); } @@ -110,7 +106,7 @@ char *argv[]; } } } - free((char *)scan); + free((void *)scan); printf("%d %d\t%e %e %e\n", xmin, ymin, colrval(cmin,RED)/colval(expos,RED), colrval(cmin,GRN)/colval(expos,GRN),