Module Name: src
Committed By: rillig
Date: Fri Feb 5 05:48:19 UTC 2021
Modified Files:
src/usr.bin/make: dir.c dir.h
Log Message:
make: add const to SearchPath_Print
To generate a diff of this commit:
cvs rdiff -u -r1.269 -r1.270 src/usr.bin/make/dir.c
cvs rdiff -u -r1.42 -r1.43 src/usr.bin/make/dir.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/dir.c
diff -u src/usr.bin/make/dir.c:1.269 src/usr.bin/make/dir.c:1.270
--- src/usr.bin/make/dir.c:1.269 Fri Feb 5 04:41:17 2021
+++ src/usr.bin/make/dir.c Fri Feb 5 05:48:19 2021
@@ -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 @@ Dir_PrintDirectories(void)
}
void
-SearchPath_Print(SearchPath *path)
+SearchPath_Print(const SearchPath *path)
{
SearchPathNode *ln;
Index: src/usr.bin/make/dir.h
diff -u src/usr.bin/make/dir.h:1.42 src/usr.bin/make/dir.h:1.43
--- src/usr.bin/make/dir.h:1.42 Sat Jan 23 11:34:41 2021
+++ src/usr.bin/make/dir.h Fri Feb 5 05:48:19 2021
@@ -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 @@ char *SearchPath_ToFlags(SearchPath *, c
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. */