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): constify Targ_FmtTime



details:   https://anonhg.NetBSD.org/src/rev/be9b3bb0f8d7
branches:  trunk
changeset: 1017199:be9b3bb0f8d7
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Dec 18 14:36:46 2020 +0000

description:
make(1): constify Targ_FmtTime

diffstat:

 usr.bin/make/nonints.h |  4 ++--
 usr.bin/make/targ.c    |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r faefa2dc8af2 -r be9b3bb0f8d7 usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h    Fri Dec 18 07:40:27 2020 +0000
+++ b/usr.bin/make/nonints.h    Fri Dec 18 14:36:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nonints.h,v 1.172 2020/12/15 20:39:15 rillig Exp $     */
+/*     $NetBSD: nonints.h,v 1.173 2020/12/18 14:36:46 rillig Exp $     */
 
 /*-
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -218,7 +218,7 @@
 void Targ_PrintCmds(GNode *);
 void Targ_PrintNode(GNode *, int);
 void Targ_PrintNodes(GNodeList *, int);
-char *Targ_FmtTime(time_t);
+const char *Targ_FmtTime(time_t);
 void Targ_PrintType(int);
 void Targ_PrintGraph(int);
 void Targ_Propagate(void);
diff -r faefa2dc8af2 -r be9b3bb0f8d7 usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Fri Dec 18 07:40:27 2020 +0000
+++ b/usr.bin/make/targ.c       Fri Dec 18 14:36:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targ.c,v 1.156 2020/12/15 21:19:47 rillig Exp $        */
+/*     $NetBSD: targ.c,v 1.157 2020/12/18 14:36:46 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.156 2020/12/15 21:19:47 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.157 2020/12/18 14:36:46 rillig Exp $");
 
 /*
  * All target nodes that appeared on the left-hand side of one of the
@@ -403,7 +403,7 @@
  * Format a modification time in some reasonable way and return it.
  * The time is placed in a static area, so it is overwritten with each call.
  */
-char *
+const char *
 Targ_FmtTime(time_t tm)
 {
        struct tm *parts;



Home | Main Index | Thread Index | Old Index