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): clean up is_separator



details:   https://anonhg.NetBSD.org/src/rev/8e14dd2b31ad
branches:  trunk
changeset: 945433:8e14dd2b31ad
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Oct 30 14:56:23 2020 +0000

description:
make(1): clean up is_separator

diffstat:

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

diffs (27 lines):

diff -r 28250109c20b -r 8e14dd2b31ad usr.bin/make/cond.c
--- a/usr.bin/make/cond.c       Fri Oct 30 14:53:31 2020 +0000
+++ b/usr.bin/make/cond.c       Fri Oct 30 14:56:23 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cond.c,v 1.171 2020/10/30 14:51:47 rillig Exp $        */
+/*     $NetBSD: cond.c,v 1.172 2020/10/30 14:56:23 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -93,7 +93,7 @@
 #include "dir.h"
 
 /*     "@(#)cond.c     8.2 (Berkeley) 1/2/94"  */
-MAKE_RCSID("$NetBSD: cond.c,v 1.171 2020/10/30 14:51:47 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.172 2020/10/30 14:56:23 rillig Exp $");
 
 /*
  * The parsing of conditional expressions is based on this grammar:
@@ -376,7 +376,7 @@
 static Boolean
 is_separator(char ch)
 {
-    return ch == '\0' || ch_isspace(ch) || strchr("!=><)", ch);
+    return ch == '\0' || ch_isspace(ch) || strchr("!=><)", ch) != NULL;
 }
 
 /*-



Home | Main Index | Thread Index | Old Index