=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/head/head.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/head/head.c 1999/07/23 13:14:32 1.4 --- src/usr.bin/head/head.c 1999/07/23 13:56:18 1.5 *************** *** 1,4 **** ! /* $OpenBSD: head.c,v 1.4 1999/07/23 13:14:32 aaron Exp $ */ /* * Copyright (c) 1980, 1987 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: head.c,v 1.5 1999/07/23 13:56:18 aaron Exp $ */ /* * Copyright (c) 1980, 1987 Regents of the University of California. *************** *** 41,47 **** #ifndef lint /*static char sccsid[] = "from: @(#)head.c 5.5 (Berkeley) 6/1/90";*/ ! static char rcsid[] = "$OpenBSD: head.c,v 1.4 1999/07/23 13:14:32 aaron Exp $"; #endif /* not lint */ #include --- 41,47 ---- #ifndef lint /*static char sccsid[] = "from: @(#)head.c 5.5 (Berkeley) 6/1/90";*/ ! static char rcsid[] = "$OpenBSD: head.c,v 1.5 1999/07/23 13:56:18 aaron Exp $"; #endif /* not lint */ #include *************** *** 89,97 **** if (p) { if ((linecnt == LONG_MIN || linecnt == LONG_MAX) && errno == ERANGE) ! err(1, "invalid line count: %s", p); else if (linecnt <= 0 || *inval) ! errx(1, "invalid line count: %s", p); } /* setlinebuf(stdout); */ --- 89,97 ---- if (p) { if ((linecnt == LONG_MIN || linecnt == LONG_MAX) && errno == ERANGE) ! err(1, "illegal line count -- %s", p); else if (linecnt <= 0 || *inval) ! errx(1, "illegal line count -- %s", p); } /* setlinebuf(stdout); */ *************** *** 102,108 **** } else { if (!freopen(*argv, "r", stdin)) { ! fprintf(stderr, "head: can't read %s.\n", *argv++); continue; } if (argc > 1) { --- 102,108 ---- } else { if (!freopen(*argv, "r", stdin)) { ! warn("%s", *argv++); continue; } if (argc > 1) {