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): constify progname



details:   https://anonhg.NetBSD.org/src/rev/2e5800de89dd
branches:  trunk
changeset: 1017139:2e5800de89dd
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Dec 13 20:09:02 2020 +0000

description:
make(1): constify progname

diffstat:

 usr.bin/make/main.c |  6 +++---
 usr.bin/make/make.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 7b2af087724c -r 2e5800de89dd usr.bin/make/main.c
--- a/usr.bin/make/main.c       Sun Dec 13 19:33:53 2020 +0000
+++ b/usr.bin/make/main.c       Sun Dec 13 20:09:02 2020 +0000
@@ -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 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;
diff -r 7b2af087724c -r 2e5800de89dd usr.bin/make/make.h
--- a/usr.bin/make/make.h       Sun Dec 13 19:33:53 2020 +0000
+++ b/usr.bin/make/make.h       Sun Dec 13 20:09:02 2020 +0000
@@ -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 @@
 /* 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. */



Home | Main Index | Thread Index | Old Index