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/2cc56c9e5e1c
branches:  trunk
changeset: 1020201:2cc56c9e5e1c
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 2fed6b0654b9 -r 2cc56c9e5e1c 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