diff options
author | eadler <eadler@FreeBSD.org> | 2015-04-20 02:07:57 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2015-04-20 02:07:57 +0000 |
commit | 703a83a4a3619aed92823acf663354ee12c045e3 (patch) | |
tree | 4ac89a06b8caed9745245731494440c1fcfdbbee /bin | |
parent | 32880107f3a6ed0e57f581ce59818effda961e07 (diff) | |
download | FreeBSD-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')
-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 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; } |