--- ray/src/px/x11image.c 1998/08/17 18:00:11 2.52 +++ ray/src/px/x11image.c 1999/06/16 08:15:17 2.54 @@ -91,7 +91,7 @@ RESOLU inpres; /* input resolution and ordering */ int xmax, ymax; /* picture dimensions */ int width, height; /* window size */ char *fname = NULL; /* input file name */ -FILE *fin = stdin; /* input file */ +FILE *fin = NULL; /* input file */ long *scanpos = NULL; /* scan line positions in file */ int cury = 0; /* current scan location */ @@ -143,6 +143,7 @@ char *argv[]; int pid; progname = argv[0]; + fin = stdin; for (i = 1; i < argc; i++) if (argv[i][0] == '-') @@ -250,6 +251,7 @@ userr: } +int headline(s) /* get relevant info from header */ char *s; { @@ -261,6 +263,7 @@ char *s; wrongformat = strcmp(fmt, COLRFMT); else if (isview(s) && sscanview(&ourview, s) > 0) gotview++; + return(0); }