Module Name:    src
Committed By:   rillig
Date:           Tue Sep 21 21:39:32 UTC 2021

Modified Files:
        src/usr.bin/make: cond.c dir.c parse.c

Log Message:
make: remove unnecessary const from parameters

These were leftovers from earlier refactorings, when extracting code to
separate functions.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.273 -r1.274 src/usr.bin/make/cond.c
cvs rdiff -u -r1.272 -r1.273 src/usr.bin/make/dir.c
cvs rdiff -u -r1.563 -r1.564 src/usr.bin/make/parse.c

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/cond.c
diff -u src/usr.bin/make/cond.c:1.273 src/usr.bin/make/cond.c:1.274
--- src/usr.bin/make/cond.c:1.273	Tue Sep 21 21:03:36 2021
+++ src/usr.bin/make/cond.c	Tue Sep 21 21:39:32 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cond.c,v 1.273 2021/09/21 21:03:36 rillig Exp $	*/
+/*	$NetBSD: cond.c,v 1.274 2021/09/21 21:39:32 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -95,7 +95,7 @@
 #include "dir.h"
 
 /*	"@(#)cond.c	8.2 (Berkeley) 1/2/94"	*/
-MAKE_RCSID("$NetBSD: cond.c,v 1.273 2021/09/21 21:03:36 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.274 2021/09/21 21:39:32 rillig Exp $");
 
 /*
  * The parsing of conditional expressions is based on this grammar:
@@ -413,8 +413,8 @@ is_separator(char ch)
  */
 static bool
 CondParser_StringExpr(CondParser *par, const char *start,
-		      bool const doEval, bool const quoted,
-		      Buffer *buf, FStr *const inout_str)
+		      bool doEval, bool quoted,
+		      Buffer *buf, FStr *inout_str)
 {
 	VarEvalMode emode;
 	const char *nested_p;

Index: src/usr.bin/make/dir.c
diff -u src/usr.bin/make/dir.c:1.272 src/usr.bin/make/dir.c:1.273
--- src/usr.bin/make/dir.c:1.272	Sun Apr  4 10:13:09 2021
+++ src/usr.bin/make/dir.c	Tue Sep 21 21:39:32 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dir.c,v 1.272 2021/04/04 10:13:09 rillig Exp $	*/
+/*	$NetBSD: dir.c,v 1.273 2021/09/21 21:39:32 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.272 2021/04/04 10:13:09 rillig Exp $");
+MAKE_RCSID("$NetBSD: dir.c,v 1.273 2021/09/21 21:39:32 rillig Exp $");
 
 /*
  * A search path is a list of CachedDir structures. A CachedDir has in it the
@@ -1127,9 +1127,8 @@ found:
 }
 
 static bool
-FindFileAbsolute(SearchPath *path, bool const seenDotLast,
-		 const char *const name, const char *const base,
-		 char **out_file)
+FindFileAbsolute(SearchPath *path, bool seenDotLast,
+		 const char *name, const char *base, char **out_file)
 {
 	char *file;
 	SearchPathNode *ln;

Index: src/usr.bin/make/parse.c
diff -u src/usr.bin/make/parse.c:1.563 src/usr.bin/make/parse.c:1.564
--- src/usr.bin/make/parse.c:1.563	Sat Aug 14 13:39:43 2021
+++ src/usr.bin/make/parse.c	Tue Sep 21 21:39:32 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: parse.c,v 1.563 2021/08/14 13:39:43 rillig Exp $	*/
+/*	$NetBSD: parse.c,v 1.564 2021/09/21 21:39:32 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -109,7 +109,7 @@
 #include "pathnames.h"
 
 /*	"@(#)parse.c	8.3 (Berkeley) 3/19/94"	*/
-MAKE_RCSID("$NetBSD: parse.c,v 1.563 2021/08/14 13:39:43 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.564 2021/09/21 21:39:32 rillig Exp $");
 
 /* types and constants */
 
@@ -1597,10 +1597,8 @@ ParseDependencySourcesMundane(char *star
  * See the tests depsrc-*.mk.
  */
 static void
-ParseDependencySources(char *const line, char *const cp,
-		       GNodeType const tOp,
-		       ParseSpecial const specType,
-		       SearchPathList ** inout_paths)
+ParseDependencySources(char *line, char *cp, GNodeType tOp,
+		       ParseSpecial specType, SearchPathList **inout_paths)
 {
 	if (line[0] == '\0') {
 		ParseDependencySourcesEmpty(specType, *inout_paths);

Reply via email to