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: use standard %H in strftime instead of %k



details:   https://anonhg.NetBSD.org/src/rev/b9f6736d227a
branches:  trunk
changeset: 960935:b9f6736d227a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 03 12:01:00 2021 +0000

description:
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.

diffstat:

 usr.bin/make/targ.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6645cd2af113 -r b9f6736d227a usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Sat Apr 03 11:19:11 2021 +0000
+++ b/usr.bin/make/targ.c       Sat Apr 03 12:01:00 2021 +0000
@@ -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 @@
        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;
 }
 



Home | Main Index | Thread Index | Old Index