From 1fff89cbaeaa43af720a1f23d9c466b756dd8a58 Mon Sep 17 00:00:00 2001 From: John Marino Date: Tue, 10 Feb 2015 10:51:33 +0100 Subject: [PATCH] ed(1): Fix [-Werror=logical-not-parentheses] /usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] Putting parenthese around the comparison makes gcc happy. --- bin/ed/glbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c index 31b39b951e..39503c75a3 100644 --- a/bin/ed/glbl.c +++ b/bin/ed/glbl.c @@ -61,7 +61,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; } -- 2.41.0