Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/date Set (and report) the new time (not the old one).
details: https://anonhg.NetBSD.org/src/rev/c3cec56c04a9
branches: trunk
changeset: 580906:c3cec56c04a9
user: dsl <dsl%NetBSD.org@localhost>
date: Sun May 15 18:39:39 2005 +0000
description:
Set (and report) the new time (not the old one).
I broke it in rev 1.38, someone has finally noticed....
diffstat:
bin/date/date.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 74b68e08c999 -r c3cec56c04a9 bin/date/date.c
--- a/bin/date/date.c Sun May 15 16:41:25 2005 +0000
+++ b/bin/date/date.c Sun May 15 18:39:39 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: date.c,v 1.38 2005/04/18 06:53:35 dsl Exp $ */
+/* $NetBSD: date.c,v 1.39 2005/05/15 18:39:39 dsl Exp $ */
/*
* Copyright (c) 1985, 1987, 1988, 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: date.c,v 1.38 2005/04/18 06:53:35 dsl Exp $");
+__RCSID("$NetBSD: date.c,v 1.39 2005/05/15 18:39:39 dsl Exp $");
#endif
#endif /* not lint */
@@ -232,6 +232,7 @@
exit(1);
}
} else {
+ tval = new_time;
tv.tv_sec = tval;
tv.tv_usec = 0;
if (settimeofday(&tv, NULL)) {
Home |
Main Index |
Thread Index |
Old Index