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: add const to SearchPath_Print
details: https://anonhg.NetBSD.org/src/rev/ce0f4a1b0187
branches: trunk
changeset: 951526:ce0f4a1b0187
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Feb 05 05:48:19 2021 +0000
description:
make: add const to SearchPath_Print
diffstat:
usr.bin/make/dir.c | 6 +++---
usr.bin/make/dir.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 426a59f02846 -r ce0f4a1b0187 usr.bin/make/dir.c
--- a/usr.bin/make/dir.c Fri Feb 05 05:46:27 2021 +0000
+++ b/usr.bin/make/dir.c Fri Feb 05 05:48:19 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.c,v 1.269 2021/02/05 04:41:17 rillig Exp $ */
+/* $NetBSD: dir.c,v 1.270 2021/02/05 05:48:19 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -138,7 +138,7 @@
#include "job.h"
/* "@(#)dir.c 8.2 (Berkeley) 1/2/94" */
-MAKE_RCSID("$NetBSD: dir.c,v 1.269 2021/02/05 04:41:17 rillig Exp $");
+MAKE_RCSID("$NetBSD: dir.c,v 1.270 2021/02/05 05:48:19 rillig Exp $");
/*
* A search path is a list of CachedDir structures. A CachedDir has in it the
@@ -1719,7 +1719,7 @@
}
void
-SearchPath_Print(SearchPath *path)
+SearchPath_Print(const SearchPath *path)
{
SearchPathNode *ln;
diff -r 426a59f02846 -r ce0f4a1b0187 usr.bin/make/dir.h
--- a/usr.bin/make/dir.h Fri Feb 05 05:46:27 2021 +0000
+++ b/usr.bin/make/dir.h Fri Feb 05 05:48:19 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.h,v 1.42 2021/01/23 11:34:41 rillig Exp $ */
+/* $NetBSD: dir.h,v 1.43 2021/02/05 05:48:19 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -92,7 +92,7 @@
void SearchPath_Clear(SearchPath *);
void SearchPath_AddAll(SearchPath *, SearchPath *);
void Dir_PrintDirectories(void);
-void SearchPath_Print(SearchPath *);
+void SearchPath_Print(const SearchPath *);
SearchPath *Dir_CopyDirSearchPath(void);
/* Stripped-down variant of struct stat. */
Home |
Main Index |
Thread Index |
Old Index