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): add missing const for Parse_AddIncludeDir
details: https://anonhg.NetBSD.org/src/rev/083be5515aee
branches: trunk
changeset: 940050:083be5515aee
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Oct 01 23:44:36 2020 +0000
description:
make(1): add missing const for Parse_AddIncludeDir
diffstat:
usr.bin/make/main.c | 8 ++++----
usr.bin/make/nonints.h | 4 ++--
usr.bin/make/parse.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r 0a320a396390 -r 083be5515aee usr.bin/make/main.c
--- a/usr.bin/make/main.c Thu Oct 01 23:42:22 2020 +0000
+++ b/usr.bin/make/main.c Thu Oct 01 23:44:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.359 2020/10/01 23:42:22 rillig Exp $ */
+/* $NetBSD: main.c,v 1.360 2020/10/01 23:44:36 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -126,7 +126,7 @@
#endif
/* "@(#)main.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: main.c,v 1.359 2020/10/01 23:42:22 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.360 2020/10/01 23:44:36 rillig Exp $");
#if defined(MAKE_NATIVE) && !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\
The Regents of the University of California. All rights reserved.");
@@ -475,7 +475,7 @@
}
static Boolean
-MainParseArg(char c, char *argvalue)
+MainParseArg(char c, const char *argvalue)
{
switch (c) {
case '\0':
@@ -603,7 +603,7 @@
static void
MainParseArgs(int argc, char **argv)
{
- char c = '?';
+ char c;
int arginc;
char *argvalue;
char *optscan;
diff -r 0a320a396390 -r 083be5515aee usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h Thu Oct 01 23:42:22 2020 +0000
+++ b/usr.bin/make/nonints.h Thu Oct 01 23:44:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.132 2020/09/27 11:37:19 rillig Exp $ */
+/* $NetBSD: nonints.h,v 1.133 2020/10/01 23:44:36 rillig Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -123,7 +123,7 @@
void Parse_Error(int, const char *, ...) MAKE_ATTR_PRINTFLIKE(2, 3);
Boolean Parse_IsVar(const char *);
void Parse_DoVar(char *, GNode *);
-void Parse_AddIncludeDir(char *);
+void Parse_AddIncludeDir(const char *);
void Parse_File(const char *, int);
void Parse_Init(void);
void Parse_End(void);
diff -r 0a320a396390 -r 083be5515aee usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Thu Oct 01 23:42:22 2020 +0000
+++ b/usr.bin/make/parse.c Thu Oct 01 23:44:36 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.343 2020/09/28 23:13:57 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.344 2020/10/01 23:44:36 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -132,7 +132,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.343 2020/09/28 23:13:57 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.344 2020/10/01 23:44:36 rillig Exp $");
/* types and constants */
@@ -2031,7 +2031,7 @@
/* Add a directory to the path searched for included makefiles bracketed
* by double-quotes. */
void
-Parse_AddIncludeDir(char *dir)
+Parse_AddIncludeDir(const char *dir)
{
(void)Dir_AddDir(parseIncPath, dir);
}
Home |
Main Index |
Thread Index |
Old Index