summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-09-22 16:21:23 +0000
committernicm <nicm@openbsd.org>2011-09-22 16:21:23 +0000
commit77f2000b88698e280cede6bb1251446d02f7f08e (patch)
tree1750e42ef6616bc35590227569c649b9c171cd2a
parentAs I have touched half of pf lines anyway, fix whitespaces now. (diff)
downloadwireguard-openbsd-77f2000b88698e280cede6bb1251446d02f7f08e.tar.xz
wireguard-openbsd-77f2000b88698e280cede6bb1251446d02f7f08e.zip
Make use of the filename argument to open_error(), pointed out by
Michael W Bombardieri. ok millert
-rw-r--r--usr.bin/yacc/error.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/yacc/error.c b/usr.bin/yacc/error.c
index d76548ab309..a42bbd79005 100644
--- a/usr.bin/yacc/error.c
+++ b/usr.bin/yacc/error.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: error.c,v 1.11 2009/10/27 23:59:50 deraadt Exp $ */
+/* $OpenBSD: error.c,v 1.12 2011/09/22 16:21:23 nicm Exp $ */
/* $NetBSD: error.c,v 1.4 1996/03/19 03:21:32 jtc Exp $ */
/*
@@ -57,7 +57,8 @@ no_space(void)
void
open_error(char *filename)
{
- fprintf(stderr, "%s: cannot open source file\n", input_file_name);
+ fprintf(stderr, "%s: cannot open source file %s\n",
+ input_file_name, filename);
done(2);
}