=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/head/head.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -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 +1,4 @@ -/* $OpenBSD: head.c,v 1.4 1999/07/23 13:14:32 aaron Exp $ */ +/* $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,7 +41,7 @@ #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 $"; +static char rcsid[] = "$OpenBSD: head.c,v 1.5 1999/07/23 13:56:18 aaron Exp $"; #endif /* not lint */ #include @@ -89,9 +89,9 @@ if (p) { if ((linecnt == LONG_MIN || linecnt == LONG_MAX) && errno == ERANGE) - err(1, "invalid line count: %s", p); + err(1, "illegal line count -- %s", p); else if (linecnt <= 0 || *inval) - errx(1, "invalid line count: %s", p); + errx(1, "illegal line count -- %s", p); } /* setlinebuf(stdout); */ @@ -102,7 +102,7 @@ } else { if (!freopen(*argv, "r", stdin)) { - fprintf(stderr, "head: can't read %s.\n", *argv++); + warn("%s", *argv++); continue; } if (argc > 1) {