=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/more/Attic/more.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/more/Attic/more.c 1997/01/17 07:12:53 1.7 --- src/usr.bin/more/Attic/more.c 1997/06/17 20:42:54 1.8 *************** *** 1,4 **** ! /* $OpenBSD: more.c,v 1.7 1997/01/17 07:12:53 millert Exp $ */ /*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: more.c,v 1.8 1997/06/17 20:42:54 kstailey Exp $ */ /*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. *************** *** 375,393 **** if (clreol) cleareol (); perror(fs); ! return((FILE *)NULL); } if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { prtf("\n*** %s: directory ***\n\n", fs); ! return((FILE *)NULL); } if ((f = Fopen(fs, "r")) == NULL) { (void)fflush(stdout); perror(fs); ! return((FILE *)NULL); } if (magic(f, fs)) ! return((FILE *)NULL); c = Getc(f); *clearfirst = c == '\f'; Ungetc (c, f); --- 375,393 ---- if (clreol) cleareol (); perror(fs); ! return(NULL); } if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { prtf("\n*** %s: directory ***\n\n", fs); ! return(NULL); } if ((f = Fopen(fs, "r")) == NULL) { (void)fflush(stdout); perror(fs); ! return(NULL); } if (magic(f, fs)) ! return(NULL); c = Getc(f); *clearfirst = c == '\f'; Ungetc (c, f);