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/w Pull up revision 1.10 (requested by he):
details: https://anonhg.NetBSD.org/src/rev/4df5366735bb
branches: netbsd-1-4
changeset: 471102:4df5366735bb
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 16:33:15 2000 +0000
description:
Pull up revision 1.10 (requested by he):
Format string cleanup.
diffstat:
usr.bin/w/pr_time.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7fdd2c4ff9c4 -r 4df5366735bb usr.bin/w/pr_time.c
--- a/usr.bin/w/pr_time.c Thu Oct 19 16:33:11 2000 +0000
+++ b/usr.bin/w/pr_time.c Thu Oct 19 16:33:15 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pr_time.c,v 1.9 1998/04/02 11:34:23 kleink Exp $ */
+/* $NetBSD: pr_time.c,v 1.9.2.1 2000/10/19 16:33:15 he Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)pr_time.c 8.2 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: pr_time.c,v 1.9 1998/04/02 11:34:23 kleink Exp $");
+__RCSID("$NetBSD: pr_time.c,v 1.9.2.1 2000/10/19 16:33:15 he Exp $");
#endif
#endif /* not lint */
@@ -102,7 +102,7 @@
/* If idle more than 36 hours, print as a number of days. */
if (idle >= 36 * SECSPERHOUR)
- printf(days == 1 ? " %dday " : " %ddays ", days);
+ printf(" %dday%s ", days, days == 1 ? "" : "s");
/* If idle more than an hour, print as HH:MM. */
else if (idle >= SECSPERHOUR)
Home |
Main Index |
Thread Index |
Old Index