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/79bc149bebb8
branches: trunk
changeset: 978491:79bc149bebb8
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 24a1063ef6cc -r 79bc149bebb8 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