--- ray/src/px/pextrem.c 1992/09/21 12:14:03 2.2 +++ ray/src/px/pextrem.c 2003/02/22 02:07:27 2.5 @@ -1,14 +1,12 @@ -/* 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. */ #include +#include #ifdef MSDOS #include #endif @@ -21,9 +19,7 @@ int wrongformat = 0; COLOR expos = WHTCOLOR; -extern char *malloc(); - headline(s) /* check header line */ char *s; { @@ -33,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); @@ -44,6 +40,7 @@ char *s; colcorval(ctmp, s); multcolor(expos, ctmp); } + return(0); } @@ -109,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),