Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/error Pull up revision 1.10 (requested by he):
details: https://anonhg.NetBSD.org/src/rev/378f36e3e28d
branches: netbsd-1-4
changeset: 471060:378f36e3e28d
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 16:31:16 2000 +0000
description:
Pull up revision 1.10 (requested by he):
Format string cleanup.
diffstat:
usr.bin/error/touch.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r 48423bde0abf -r 378f36e3e28d usr.bin/error/touch.c
--- a/usr.bin/error/touch.c Thu Oct 19 16:31:14 2000 +0000
+++ b/usr.bin/error/touch.c Thu Oct 19 16:31:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: touch.c,v 1.8 1998/03/30 02:19:45 mrg Exp $ */
+/* $NetBSD: touch.c,v 1.8.2.1 2000/10/19 16:31:16 he Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: touch.c,v 1.8 1998/03/30 02:19:45 mrg Exp $");
+__RCSID("$NetBSD: touch.c,v 1.8.2.1 2000/10/19 16:31:16 he Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -173,10 +173,11 @@
if (nfiles){
someerrors++;
- fprintf(stdout, terse
- ? "%d file%s"
- : "%d file%s contain%s errors",
- nfiles, plural(nfiles), verbform(nfiles));
+ if (terse)
+ fprintf(stdout, "%d file%s", nfiles, plural(nfiles));
+ else
+ fprintf(stdout, "%d file%s contain%s errors",
+ nfiles, plural(nfiles), verbform(nfiles));
if (!terse){
FILEITERATE(fi, 1){
fprintf(stdout, "%s\"%s\" (%d)",
Home |
Main Index |
Thread Index |
Old Index