--- ray/src/common/header.c 2003/02/25 02:47:21 2.12 +++ ray/src/common/header.c 2003/06/30 14:59:11 2.17 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: header.c,v 2.12 2003/02/25 02:47:21 greg Exp $"; +static const char RCSid[] = "$Id: header.c,v 2.17 2003/06/30 14:59:11 schorsch Exp $"; #endif /* * header.c - routines for reading and writing information headers. @@ -31,20 +31,18 @@ static const char RCSid[] = "$Id: header.c,v 2.12 2003 #include #include +#include "resolu.h" + #define MAXLINE 512 -#ifndef BSD -#define index strchr -#endif - -extern char *index(); - char HDRSTR[] = "#?"; /* information header magic number */ char FMTSTR[] = "FORMAT="; /* format identifier */ char TMSTR[] = "CAPDATE="; /* capture date identifier */ +extern void fputword(char *s, FILE *fp); + static int mycheck(); @@ -144,8 +142,6 @@ int ac; char **av; FILE *fp; { - int quote; - while (ac-- > 0) { fputword(*av++, fp); fputc(ac ? ' ' : '\n', fp); @@ -313,7 +309,7 @@ FILE *fout; cdat.fp = fout; cdat.fs[0] = '\0'; - if (getheader(fin, mycheck, &cdat) < 0) + if (getheader(fin, mycheck, (char *)&cdat) < 0) return(-1); if (!cdat.fs[0]) return(0);