--- ray/src/px/aedimage.c 1991/04/18 14:35:03 1.10 +++ ray/src/px/aedimage.c 1998/10/27 09:08:25 2.4 @@ -13,6 +13,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include #include @@ -97,7 +99,6 @@ FILE *fin; extern long ftell(); long scanpos[NROWS]; -extern double atof(); double exposure = 1.0; int wrong_fmt = 0; @@ -145,7 +146,7 @@ char *argv[]; if (wrong_fmt) quitmsg("input must be a Radiance picture"); /* get picture dimensions */ - if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) + if (fgetresolu(&xmax, &ymax, fin) < 0) quitmsg("bad picture size"); if (xmax > NCOLS || ymax > NROWS) quitmsg("resolution mismatch"); @@ -169,6 +170,7 @@ userr: } +int checkhead(line) /* deal with line from header */ char *line; { @@ -180,6 +182,7 @@ char *line; formatval(fmt, line); wrong_fmt = strcmp(fmt, COLRFMT); } + return(0); } @@ -520,7 +523,6 @@ int offset[3]; picreadcm(map) /* do gamma correction */ colormap map; { - extern double pow(); register int i, val; for (i = 0; i < 256; i++) {