Date: Mon, 20 Apr 2015 02:07:57 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281758 - head/bin/ed Message-ID: <201504200207.t3K27vFt078041@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Mon Apr 20 02:07:57 2015 New Revision: 281758 URL: https://svnweb.freebsd.org/changeset/base/281758 Log: 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 Modified: head/bin/ed/glbl.c Modified: head/bin/ed/glbl.c ============================================================================== --- head/bin/ed/glbl.c Mon Apr 20 00:24:32 2015 (r281757) +++ head/bin/ed/glbl.c Mon Apr 20 02:07:57 2015 (r281758) @@ -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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504200207.t3K27vFt078041>