Module Name:    src
Committed By:   rillig
Date:           Sat Oct  1 09:27:45 UTC 2022

Modified Files:
        src/usr.bin/make: var.c

Log Message:
make: constify, fix comment indentation

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.1034 -r1.1035 src/usr.bin/make/var.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/var.c
diff -u src/usr.bin/make/var.c:1.1034 src/usr.bin/make/var.c:1.1035
--- src/usr.bin/make/var.c:1.1034	Sat Oct  1 09:20:47 2022
+++ src/usr.bin/make/var.c	Sat Oct  1 09:27:45 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: var.c,v 1.1034 2022/10/01 09:20:47 rillig Exp $	*/
+/*	$NetBSD: var.c,v 1.1035 2022/10/01 09:27:45 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -139,7 +139,7 @@
 #include "metachar.h"
 
 /*	"@(#)var.c	8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.1034 2022/10/01 09:20:47 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.1035 2022/10/01 09:27:45 rillig Exp $");
 
 /*
  * Variables are defined using one of the VAR=value assignments.  Their
@@ -198,9 +198,9 @@ typedef struct Var {
 	bool readOnly:1;
 
 	/*
-	* The variable's value is currently being used by Var_Parse or
-	* Var_Subst.  This marker is used to avoid endless recursion.
-	*/
+	 * The variable is currently being accessed by Var_Parse or Var_Subst.
+	 * This temporary marker is used to avoid endless recursion.
+	 */
 	bool inUse:1;
 
 	/*
@@ -4797,7 +4797,7 @@ Var_Dump(GNode *scope)
 
 	for (i = 0; i < vec.len; i++) {
 		const char *varname = varnames[i];
-		Var *var = HashTable_FindValue(&scope->vars, varname);
+		const Var *var = HashTable_FindValue(&scope->vars, varname);
 		debug_printf("%-16s = %s%s\n", varname,
 		    var->val.data, ValueDescription(var->val.data));
 	}

Reply via email to