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: constify cached_realpath



details:   https://anonhg.NetBSD.org/src/rev/a2708338d8e3
branches:  trunk
changeset: 1029228:a2708338d8e3
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Dec 28 01:11:36 2021 +0000

description:
make: constify cached_realpath

No binary change.

diffstat:

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

diffs (45 lines):

diff -r 2ddee25b7834 -r a2708338d8e3 usr.bin/make/main.c
--- a/usr.bin/make/main.c       Tue Dec 28 01:04:03 2021 +0000
+++ b/usr.bin/make/main.c       Tue Dec 28 01:11:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.559 2021/12/27 23:44:06 rillig Exp $        */
+/*     $NetBSD: main.c,v 1.560 2021/12/28 01:11:36 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -111,7 +111,7 @@
 #include "trace.h"
 
 /*     "@(#)main.c     8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: main.c,v 1.559 2021/12/27 23:44:06 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.560 2021/12/28 01:11:36 rillig Exp $");
 #if defined(MAKE_NATIVE) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
            "The Regents of the University of California.  "
@@ -1988,7 +1988,7 @@
        }
 }
 
-char *
+const char *
 cached_realpath(const char *pathname, char *resolved)
 {
        const char *rp;
diff -r 2ddee25b7834 -r a2708338d8e3 usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h    Tue Dec 28 01:04:03 2021 +0000
+++ b/usr.bin/make/nonints.h    Tue Dec 28 01:11:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nonints.h,v 1.222 2021/12/27 17:18:57 rillig Exp $     */
+/*     $NetBSD: nonints.h,v 1.223 2021/12/28 01:11:36 rillig Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -135,7 +135,7 @@
 void execDie(const char *, const char *);
 char *getTmpdir(void) MAKE_ATTR_USE;
 bool ParseBoolean(const char *, bool) MAKE_ATTR_USE;
-char *cached_realpath(const char *, char *);
+const char *cached_realpath(const char *, char *);
 
 /* parse.c */
 void Parse_Init(void);



Home | Main Index | Thread Index | Old Index