--- ray/src/px/aedimage.c 1991/11/11 14:38:48 1.11 +++ ray/src/px/aedimage.c 2004/01/02 12:47:01 2.6 @@ -1,9 +1,6 @@ -/* Copyright (c) 1986 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: aedimage.c,v 2.6 2004/01/02 12:47:01 schorsch Exp $"; #endif - /* * aedimage.c - RADIANCE driver for AED 512 terminal. * @@ -12,13 +9,12 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include - +#include #include - #include #include "pic.h" - +#include "resolu.h" #include "color.h" @@ -97,16 +93,17 @@ FILE *fin; extern long ftell(); long scanpos[NROWS]; -extern double atof(); double exposure = 1.0; int wrong_fmt = 0; +static gethfunc checkhead; + main(argc, argv) int argc; char *argv[]; { - int onintr(), checkhead(); + int onintr(); char sbuf[256]; register int i; @@ -169,8 +166,11 @@ userr: } -checkhead(line) /* deal with line from header */ -char *line; +static int +checkhead( /* deal with line from header */ + char *line, + void *p +) { char fmt[32]; @@ -180,6 +180,7 @@ char *line; formatval(fmt, line); wrong_fmt = strcmp(fmt, COLRFMT); } + return(0); } @@ -244,6 +245,7 @@ char *err; } +void eputs(s) char *s; { @@ -251,6 +253,7 @@ char *s; } +void quit(status) int status; { @@ -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++) {