diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2015-04-20 02:07:57 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2015-04-20 02:07:57 +0000 |
commit | 7d00295b1bffbe06fcec543029f27f4bc23260c0 (patch) | |
tree | 4ac89a06b8caed9745245731494440c1fcfdbbee /bin/ed | |
parent | a3a4b110da14609570235f7ca4d8badfeadeb65b (diff) | |
download | src-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.c | 2 |
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; } |