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 local variables in ForIterate



details:   https://anonhg.NetBSD.org/src/rev/bfa35348d811
branches:  trunk
changeset: 938386:bfa35348d811
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Sep 07 06:27:29 2020 +0000

description:
make(1): constify local variables in ForIterate

diffstat:

 usr.bin/make/for.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r f39aabe917f9 -r bfa35348d811 usr.bin/make/for.c
--- a/usr.bin/make/for.c        Mon Sep 07 06:26:18 2020 +0000
+++ b/usr.bin/make/for.c        Mon Sep 07 06:27:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: for.c,v 1.76 2020/09/07 06:26:18 rillig Exp $  */
+/*     $NetBSD: for.c,v 1.77 2020/09/07 06:27:29 rillig Exp $  */
 
 /*
  * Copyright (c) 1992, The Regents of the University of California.
@@ -30,14 +30,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: for.c,v 1.76 2020/09/07 06:26:18 rillig Exp $";
+static char rcsid[] = "$NetBSD: for.c,v 1.77 2020/09/07 06:27:29 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)for.c      8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: for.c,v 1.76 2020/09/07 06:26:18 rillig Exp $");
+__RCSID("$NetBSD: for.c,v 1.77 2020/09/07 06:27:29 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -370,9 +370,9 @@
     For *arg = v_arg;
     int i;
     char *var;
-    char *cp;
-    char *cmd_cp;
-    char *body_end;
+    const char *cp;
+    const char *cmd_cp;
+    const char *body_end;
     char ch;
     Buffer cmds;
     char *cmds_str;



Home | Main Index | Thread Index | Old Index