summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2015-04-20 02:07:57 +0000
committereadler <eadler@FreeBSD.org>2015-04-20 02:07:57 +0000
commit703a83a4a3619aed92823acf663354ee12c045e3 (patch)
tree4ac89a06b8caed9745245731494440c1fcfdbbee /bin/ed
parent32880107f3a6ed0e57f581ce59818effda961e07 (diff)
downloadFreeBSD-src-703a83a4a3619aed92823acf663354ee12c045e3.zip
FreeBSD-src-703a83a4a3619aed92823acf663354ee12c045e3.tar.gz
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
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 029f4f2..dfb44d2 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;
}
OpenPOWER on IntegriCloud