--- ray/src/px/pfilt.c 2003/06/30 14:59:12 2.25 +++ ray/src/px/pfilt.c 2004/01/02 12:47:01 2.28 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pfilt.c,v 2.25 2003/06/30 14:59:12 schorsch Exp $"; +static const char RCSid[] = "$Id: pfilt.c,v 2.28 2004/01/02 12:47:01 schorsch Exp $"; #endif /* * pfilt.c - program to post-process picture file. @@ -13,8 +13,8 @@ static const char RCSid[] = "$Id: pfilt.c,v 2.25 2003/ #include #include -#include "standard.h" #include "platform.h" +#include "standard.h" #include "color.h" #include "view.h" #include "paths.h" @@ -83,12 +83,13 @@ int orad = 0; /* output window radius */ char *progname; +static gethfunc headline; + main(argc, argv) int argc; char **argv; { - extern int headline(); FILE *fin; float *lampcolor; char *lamptype = NULL; @@ -328,9 +329,11 @@ COLOR clr; double (*ourbright)() = rgb_bright; -int -headline(s) /* process line from header */ -char *s; +static int +headline( /* process line from header */ + char *s, + void *p +) { char fmt[32]; @@ -490,12 +493,12 @@ scan2init() /* prepare scanline arrays */ if (obarsize > 0) { scoutbar = (COLOR **)malloc(obarsize*sizeof(COLOR *)); greybar = (float **)malloc(obarsize*sizeof(float *)); - if (scoutbar == NULL | greybar == NULL) + if ((scoutbar == NULL) | (greybar == NULL)) goto memerr; for (i = 0; i < obarsize; i++) { scoutbar[i] = (COLOR *)malloc(ncols*sizeof(COLOR)); greybar[i] = (float *)malloc(ncols*sizeof(float)); - if (scoutbar[i] == NULL | greybar[i] == NULL) + if ((scoutbar[i] == NULL) | (greybar[i] == NULL)) goto memerr; } } else {