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): improve type of local variable in Var_...
details: https://anonhg.NetBSD.org/src/rev/2bf35dfd69f6
branches: trunk
changeset: 978660:2bf35dfd69f6
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Nov 28 16:36:19 2020 +0000
description:
make(1): improve type of local variable in Var_Export1
diffstat:
usr.bin/make/var.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 680160396cb6 -r 2bf35dfd69f6 usr.bin/make/var.c
--- a/usr.bin/make/var.c Sat Nov 28 16:34:13 2020 +0000
+++ b/usr.bin/make/var.c Sat Nov 28 16:36:19 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.698 2020/11/28 10:09:28 rillig Exp $ */
+/* $NetBSD: var.c,v 1.699 2020/11/28 16:36:19 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -130,7 +130,7 @@
#include "metachar.h"
/* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.698 2020/11/28 10:09:28 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.699 2020/11/28 16:36:19 rillig Exp $");
#define VAR_DEBUG1(fmt, arg1) DEBUG1(VAR, fmt, arg1)
#define VAR_DEBUG2(fmt, arg1, arg2) DEBUG2(VAR, fmt, arg1, arg2)
@@ -512,7 +512,7 @@
static Boolean
Var_Export1(const char *name, VarExportFlags flags)
{
- VarExportFlags parent = flags & VAR_EXPORT_PARENT;
+ Boolean parent = (flags & VAR_EXPORT_PARENT) != 0;
Var *v;
char *val;
Home |
Main Index |
Thread Index |
Old Index