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): remove unnecessary double negation in ...
details: https://anonhg.NetBSD.org/src/rev/14bae0106bfb
branches: trunk
changeset: 956333:14bae0106bfb
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Oct 26 22:51:56 2020 +0000
description:
make(1): remove unnecessary double negation in Job_ParseShell
diffstat:
usr.bin/make/job.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 4f11b43802c0 -r 14bae0106bfb usr.bin/make/job.c
--- a/usr.bin/make/job.c Mon Oct 26 21:34:10 2020 +0000
+++ b/usr.bin/make/job.c Mon Oct 26 22:51:56 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: job.c,v 1.290 2020/10/26 21:34:10 rillig Exp $ */
+/* $NetBSD: job.c,v 1.291 2020/10/26 22:51:56 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -143,7 +143,7 @@
#include "trace.h"
/* "@(#)job.c 8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: job.c,v 1.290 2020/10/26 21:34:10 rillig Exp $");
+MAKE_RCSID("$NetBSD: job.c,v 1.291 2020/10/26 22:51:56 rillig Exp $");
/* A shell defines how the commands are run. All commands for a target are
* written into a single file, which is then given to the shell to execute
@@ -2331,8 +2331,8 @@
newShell.exit = arg + 8;
} else if (strncmp(arg, "hasErrCtl=", 10) == 0) {
char c = arg[10];
- newShell.hasErrCtl = !((c != 'Y') && (c != 'y') &&
- (c != 'T') && (c != 't'));
+ newShell.hasErrCtl = c == 'Y' || c == 'y' ||
+ c == 'T' || c == 't';
} else if (strncmp(arg, "newline=", 8) == 0) {
newShell.newline = arg + 8;
} else if (strncmp(arg, "check=", 6) == 0) {
Home |
Main Index |
Thread Index |
Old Index