summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc/mkpar.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-05 03:21:41 +0000
committerobrien <obrien@FreeBSD.org>2002-04-05 03:21:41 +0000
commit1f93d739ef21666aff1abde7e46d86babe1922bf (patch)
tree97d4ce89ae56e0e21ba8ee575953c97dbc6578a5 /usr.bin/yacc/mkpar.c
parent89bf1a5f935729890d6df9d9946c56e552111e84 (diff)
downloadFreeBSD-src-1f93d739ef21666aff1abde7e46d86babe1922bf.zip
FreeBSD-src-1f93d739ef21666aff1abde7e46d86babe1922bf.tar.gz
Revert the "tell the program name in diagnostics". What was I thinking??
warnx() already does this for us.
Diffstat (limited to 'usr.bin/yacc/mkpar.c')
-rw-r--r--usr.bin/yacc/mkpar.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/yacc/mkpar.c b/usr.bin/yacc/mkpar.c
index c9ed973..e552737 100644
--- a/usr.bin/yacc/mkpar.c
+++ b/usr.bin/yacc/mkpar.c
@@ -39,7 +39,6 @@
static char sccsid[] = "@(#)mkpar.c 5.3 (Berkeley) 1/20/91";
#endif
#endif
-
#include <sys/cdefs.h>
#ifdef __FBSDID
__FBSDID("$FreeBSD$");
@@ -251,9 +250,9 @@ unused_rules()
if (nunused) {
if (nunused == 1)
- warnx("%s: 1 rule never reduced", getprogname());
+ warnx("1 rule never reduced");
else
- warnx("%s: %d rules never reduced", getprogname(), nunused);
+ warnx("%d rules never reduced", nunused);
}
}
@@ -342,15 +341,15 @@ total_conflicts()
if ((SRtotal != SRexpect) || RRtotal)
{
if (SRtotal == 1)
- warnx("%s: 1 shift/reduce conflict", getprogname());
+ warnx("1 shift/reduce conflict");
else if (SRtotal > 1)
- warnx("%s: %d shift/reduce conflicts", getprogname(), SRtotal);
+ warnx("%d shift/reduce conflicts", SRtotal);
}
if (RRtotal == 1)
- warnx("%s: 1 reduce/reduce conflict", getprogname());
+ warnx("1 reduce/reduce conflict");
else if (RRtotal > 1)
- warnx("%s: %d reduce/reduce conflicts", getprogname(), RRtotal);
+ warnx("%d reduce/reduce conflicts", RRtotal);
}
OpenPOWER on IntegriCloud