summaryrefslogtreecommitdiffstats
path: root/usr.bin/checknr/checknr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/checknr/checknr.c')
-rw-r--r--usr.bin/checknr/checknr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/checknr/checknr.c b/usr.bin/checknr/checknr.c
index 30527bd..742c74e 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 <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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);
OpenPOWER on IntegriCloud