--- ray/src/px/ra_rgbe.c 1992/09/21 12:15:13 2.3 +++ ray/src/px/ra_rgbe.c 1993/11/18 09:55:20 2.6 @@ -9,13 +9,14 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include +#include +#include "color.h" +#include "resolu.h" + #ifdef MSDOS #include #endif -#include "color.h" -#include "resolu.h" - extern char *malloc(); int bradj = 0; /* brightness adjustment */ @@ -63,7 +64,7 @@ char *argv[]; exit(1); } if (i == argc-2 && freopen(argv[i+1], "w", stdout) == NULL) { - fprintf(stderr, "can't open output \"%s\"\n", + fprintf(stderr, "%s: can't open output \"%s\"\n", progname, argv[i+1]); exit(1); } @@ -89,11 +90,9 @@ char *err; transfer() /* transfer Radiance picture */ { - extern double pow(); int order; int xmax, ymax; COLR *scanin; - register int x; int y; /* get header info. */ if (checkheader(stdin, COLRFMT, stdout) < 0 || @@ -127,7 +126,7 @@ transfer() /* transfer Radiance picture */ else fwritecolrs(scanin, xmax, stdout); if (ferror(stdout)) - quiterr("error writing rasterfile"); + quiterr("error writing output picture"); } /* free scanline */ free((char *)scanin);