summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2015-04-20 02:07:57 +0000
committerEitan Adler <eadler@FreeBSD.org>2015-04-20 02:07:57 +0000
commit7d00295b1bffbe06fcec543029f27f4bc23260c0 (patch)
tree4ac89a06b8caed9745245731494440c1fcfdbbee /bin/ed
parenta3a4b110da14609570235f7ca4d8badfeadeb65b (diff)
downloadsrc-test-7d00295b1bffbe06fcec543029f27f4bc23260c0.tar.gz
src-test-7d00295b1bffbe06fcec543029f27f4bc23260c0.zip
ed(1): Fix [-Werror=logical-not-parentheses]
/usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to theleft hand side of comparison [-Werror=logical-not-parentheses] Obtained from: Dragonfly (1fff89cbaeaa43af720a1f23d9c466b756dd8a58) MFC After: 1 month
Notes
Notes: svn path=/head/; revision=281758
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/glbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c
index 029f4f2ca6628..dfb44d28ca0d9 100644
--- a/bin/ed/glbl.c
+++ b/bin/ed/glbl.c
@@ -60,7 +60,7 @@ build_active_list(int isgcmd)
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;
}