--- ray/src/px/pinterp.c 2003/07/27 22:12:03 2.37 +++ ray/src/px/pinterp.c 2004/01/02 12:47:01 2.40 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pinterp.c,v 2.37 2003/07/27 22:12:03 schorsch Exp $"; +static const char RCSid[] = "$Id: pinterp.c,v 2.40 2004/01/02 12:47:01 schorsch Exp $"; #endif /* * Interpolate and extrapolate pictures with different view parameters. @@ -12,6 +12,7 @@ static const char RCSid[] = "$Id: pinterp.c,v 2.37 200 #include #include +#include "platform.h" #include "standard.h" #include "rtprocess.h" /* Windows: must come before color.h */ #include "view.h" @@ -93,7 +94,9 @@ int queuesiz = 0; /* number of pixels pending */ extern double movepixel(); +static gethfunc headline; + main(argc, argv) /* interpolate pictures */ int argc; char *argv[]; @@ -326,9 +329,11 @@ userr: } -int -headline(s) /* process header string */ -char *s; +static int +headline( /* process header string */ + char *s, + void *p +) { char fmt[32]; @@ -491,7 +496,8 @@ char *pfile, *zspec; exit(1); } if (zfd != -1 && lseek(zfd, - (off_t)ylim.min*scanlen(&tresolu)*sizeof(float), 0) < 0) + (off_t)ylim.min*scanlen(&tresolu)*sizeof(float), + SEEK_SET) < 0) syserror(zspec); /* load image */ for (y = ylim.min; y <= ylim.max; y++) { @@ -759,7 +765,7 @@ int zfd; for (y = step - 1; y < numscans(&tresolu); y += step) { if (zfd != -1) { if (lseek(zfd, (off_t)y*scanlen(&tresolu)*sizeof(float), - 0) < 0) + SEEK_SET) < 0) syserror("lseek"); if (read(zfd, (char *)zline, scanlen(&tresolu)*sizeof(float))