Module Name: src
Committed By: rillig
Date: Sun Dec 13 20:09:02 UTC 2020
Modified Files:
src/usr.bin/make: main.c make.h
Log Message:
make(1): constify progname
To generate a diff of this commit:
cvs rdiff -u -r1.496 -r1.497 src/usr.bin/make/main.c
cvs rdiff -u -r1.233 -r1.234 src/usr.bin/make/make.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/main.c
diff -u src/usr.bin/make/main.c:1.496 src/usr.bin/make/main.c:1.497
--- src/usr.bin/make/main.c:1.496 Sun Dec 13 02:01:43 2020
+++ src/usr.bin/make/main.c Sun Dec 13 20:09:02 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.496 2020/12/13 02:01:43 rillig Exp $ */
+/* $NetBSD: main.c,v 1.497 2020/12/13 20:09:02 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -109,7 +109,7 @@
#include "trace.h"
/* "@(#)main.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: main.c,v 1.496 2020/12/13 02:01:43 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.497 2020/12/13 20:09:02 rillig Exp $");
#if defined(MAKE_NATIVE) && !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
"The Regents of the University of California. "
@@ -136,7 +136,7 @@ static void purge_relative_cached_realpa
static Boolean ignorePWD; /* if we use -C, PWD is meaningless */
static char objdir[MAXPATHLEN + 1]; /* where we chdir'ed to */
char curdir[MAXPATHLEN + 1]; /* Startup directory */
-char *progname; /* the program name */
+const char *progname;
char *makeDependfile;
pid_t myPid;
int makelevel;
Index: src/usr.bin/make/make.h
diff -u src/usr.bin/make/make.h:1.233 src/usr.bin/make/make.h:1.234
--- src/usr.bin/make/make.h:1.233 Fri Dec 11 23:00:59 2020
+++ src/usr.bin/make/make.h Sun Dec 13 20:09:02 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.233 2020/12/11 23:00:59 rillig Exp $ */
+/* $NetBSD: make.h,v 1.234 2020/12/13 20:09:02 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -521,7 +521,7 @@ extern SearchPath *defSysIncPath;
/* Startup directory */
extern char curdir[];
/* The basename of the program name, suffixed with [n] for sub-makes. */
-extern char *progname;
+extern const char *progname;
/* Name of the .depend makefile */
extern char *makeDependfile;
/* If we replaced environ, this will be non-NULL. */