From 7bd73b069cd7960c9352342e6728c094f740b63f Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Thu, 15 Jul 2004 04:45:24 +0000 Subject: Use warn() instead of perror(). --- usr.bin/checknr/checknr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/checknr/checknr.c') diff --git a/usr.bin/checknr/checknr.c b/usr.bin/checknr/checknr.c index 30527bda7fc9..742c74e5de60 100644 --- a/usr.bin/checknr/checknr.c +++ b/usr.bin/checknr/checknr.c @@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$"); * later but for now think of these restrictions as contributions to * structured typesetting. */ +#include #include #include #include @@ -257,7 +258,7 @@ main(int argc, char **argv) cfilename = argv[i]; f = fopen(cfilename, "r"); if (f == NULL) - perror(cfilename); + warn("%s", cfilename); else { process(f); fclose(f); -- cgit v1.2.3