From 1f93d739ef21666aff1abde7e46d86babe1922bf Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 5 Apr 2002 03:21:41 +0000 Subject: Revert the "tell the program name in diagnostics". What was I thinking?? warnx() already does this for us. --- usr.bin/yacc/mkpar.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'usr.bin/yacc/mkpar.c') 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 #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); } -- cgit v1.1