Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): add remark to add a "reasonable way" t...
details: https://anonhg.NetBSD.org/src/rev/cedeb7d7b442
branches: trunk
changeset: 957267:cedeb7d7b442
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Nov 22 20:01:46 2020 +0000
description:
make(1): add remark to add a "reasonable way" to format time_t 0
diffstat:
usr.bin/make/targ.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r f6bf6c857a4d -r cedeb7d7b442 usr.bin/make/targ.c
--- a/usr.bin/make/targ.c Sun Nov 22 19:53:47 2020 +0000
+++ b/usr.bin/make/targ.c Sun Nov 22 20:01:46 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: targ.c,v 1.139 2020/11/21 18:41:57 rillig Exp $ */
+/* $NetBSD: targ.c,v 1.140 2020/11/22 20:01:46 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -119,7 +119,7 @@
#include "dir.h"
/* "@(#)targ.c 8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.139 2020/11/21 18:41:57 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.140 2020/11/22 20:01:46 rillig Exp $");
/*
* All target nodes that appeared on the left-hand side of one of the
@@ -398,6 +398,8 @@
struct tm *parts;
static char buf[128];
+ /* TODO: Add special case for 0, which often means ENOENT, to make it
+ * independent from time zones. */
parts = localtime(&tm);
(void)strftime(buf, sizeof buf, "%k:%M:%S %b %d, %Y", parts);
return buf;
Home |
Main Index |
Thread Index |
Old Index