--- ray/src/px/ra_tiff.c 1991/11/12 16:05:41 2.1 +++ ray/src/px/ra_tiff.c 1993/11/18 09:55:26 2.5 @@ -10,13 +10,14 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "tiffio.h" #include "color.h" #include "resolu.h" -extern double atof(); extern char *malloc(), *realloc(); @@ -24,7 +25,7 @@ int lzcomp = 0; /* use Lempel-Ziv compression? */ int greyscale = 0; /* produce greyscale image? */ -double gamma = 2.2; /* gamma correction */ +double gamcor = 2.2; /* gamma correction */ int bradj = 0; /* brightness adjustment */ @@ -44,7 +45,7 @@ char *argv[]; if (argv[i][0] == '-') switch (argv[i][1]) { case 'g': - gamma = atof(argv[++i]); + gamcor = atof(argv[++i]); break; case 'z': lzcomp = !lzcomp; @@ -68,7 +69,7 @@ char *argv[]; else break; doneopts: - setcolrgam(gamma); + setcolrgam(gamcor); if (reverse) if (i != argc-2 && i != argc-1) @@ -144,7 +145,7 @@ char *inpf, *outf; fputs(" -r\n", stdout); fputformat(COLRFMT, stdout); putchar('\n'); - fprtresolu(xmax, ymax, stdout); + fprtresolu((int)xmax, (int)ymax, stdout); /* convert image */ if (nsamps == 1) pconfig = 1;