Module Name: src
Committed By: rillig
Date: Sat Apr 3 12:01:00 UTC 2021
Modified Files:
src/usr.bin/make: targ.c
Log Message:
make: use standard %H in strftime instead of %k
The conversion specifier %k is neither in C99 nor in C90.
These timestamps are only used in the debug output.
To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/usr.bin/make/targ.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/targ.c
diff -u src/usr.bin/make/targ.c:1.167 src/usr.bin/make/targ.c:1.168
--- src/usr.bin/make/targ.c:1.167 Sat Apr 3 11:08:40 2021
+++ src/usr.bin/make/targ.c Sat Apr 3 12:01:00 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: targ.c,v 1.167 2021/04/03 11:08:40 rillig Exp $ */
+/* $NetBSD: targ.c,v 1.168 2021/04/03 12:01:00 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -113,7 +113,7 @@
#include "dir.h"
/* "@(#)targ.c 8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.167 2021/04/03 11:08:40 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.168 2021/04/03 12:01:00 rillig Exp $");
/*
* All target nodes that appeared on the left-hand side of one of the
@@ -410,7 +410,7 @@ Targ_FmtTime(time_t tm)
static char buf[128];
struct tm *parts = localtime(&tm);
- (void)strftime(buf, sizeof buf, "%k:%M:%S %b %d, %Y", parts);
+ (void)strftime(buf, sizeof buf, "%H:%M:%S %b %d, %Y", parts);
return buf;
}