Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Don't type && when you mean || (pointed out by ...



details:   https://anonhg.NetBSD.org/src/rev/7eb6124e443c
branches:  trunk
changeset: 485049:7eb6124e443c
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 17 14:59:02 2000 +0000

description:
Don't type && when you mean || (pointed out by David Holland)

diffstat:

 usr.bin/make/var.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r df76014ecb4f -r 7eb6124e443c usr.bin/make/var.c
--- a/usr.bin/make/var.c        Mon Apr 17 14:33:11 2000 +0000
+++ b/usr.bin/make/var.c        Mon Apr 17 14:59:02 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.38 2000/04/16 23:35:16 christos Exp $        */
+/*     $NetBSD: var.c,v 1.39 2000/04/17 14:59:02 christos Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -39,14 +39,14 @@
  */
 
 #ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: var.c,v 1.38 2000/04/16 23:35:16 christos Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.39 2000/04/17 14:59:02 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c      8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.38 2000/04/16 23:35:16 christos Exp $");
+__RCSID("$NetBSD: var.c,v 1.39 2000/04/17 14:59:02 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -2234,7 +2234,7 @@
                int expand;
                for (;;) {
                    if (str[1] != '(' && str[1] != '{') {
-                       if (str[1] != *var && strlen(var) > 1) {
+                       if (str[1] != *var || strlen(var) > 1) {
                            Buf_AddBytes(buf, 2, (Byte *) str);
                            str += 2;
                            expand = FALSE;



Home | Main Index | Thread Index | Old Index