Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ed Be explicit about what is negated.
details: https://anonhg.NetBSD.org/src/rev/9b022130a323
branches: trunk
changeset: 340232:9b022130a323
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Aug 28 11:29:48 2015 +0000
description:
Be explicit about what is negated.
diffstat:
bin/ed/glbl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 156ec78c5bff -r 9b022130a323 bin/ed/glbl.c
--- a/bin/ed/glbl.c Fri Aug 28 11:20:55 2015 +0000
+++ b/bin/ed/glbl.c Fri Aug 28 11:29:48 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: glbl.c,v 1.8 2014/03/31 12:55:46 christos Exp $ */
+/* $NetBSD: glbl.c,v 1.9 2015/08/28 11:29:48 joerg Exp $ */
/* glob.c: This file contains the global command routines for the ed line
editor */
@@ -33,7 +33,7 @@
#if 0
static char *rcsid = "@(#)glob.c,v 1.1 1994/02/01 00:34:40 alm Exp";
#else
-__RCSID("$NetBSD: glbl.c,v 1.8 2014/03/31 12:55:46 christos Exp $");
+__RCSID("$NetBSD: glbl.c,v 1.9 2015/08/28 11:29:48 joerg Exp $");
#endif
#endif /* not lint */
@@ -67,7 +67,7 @@
return ERR;
if (isbinary)
NUL_TO_NEWLINE(s, lp->len);
- if (!regexec(pat, s, 0, NULL, 0) == isgcmd &&
+ if ((!regexec(pat, s, 0, NULL, 0)) == isgcmd &&
set_active_node(lp) < 0)
return ERR;
}
Home |
Main Index |
Thread Index |
Old Index