From owner-cvs-all Thu Mar 7 4:19: 6 2002 Delivered-To: cvs-all@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 2DA1A37B41A; Thu, 7 Mar 2002 04:19:01 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.6/8.11.1) id g27CJ1i66631; Thu, 7 Mar 2002 04:19:01 -0800 (PST) (envelope-from obrien) Date: Thu, 7 Mar 2002 04:14:57 -0800 From: "David O'Brien" To: Mark Murray , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/rwall rwall.c Message-ID: <20020307041457.A66608@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <20020307033328.A64158@dragon.nuxi.com> <200203071210.g27CA8RV010023@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200203071210.g27CA8RV010023@grimreaper.grondar.org>; from mark@grondar.za on Thu, Mar 07, 2002 at 12:10:08PM +0000 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Mar 07, 2002 at 12:10:08PM +0000, Mark Murray wrote: > > On Thu, Mar 07, 2002 at 11:27:02AM +0000, Mark Murray wrote: > > > > - if ((fd = mkstemp(tmpname)) == -1 || !(fp = fdopen(fd, "r+"))) > > > > + fd = mkstemp(tmpname); > > > > + fp = fdopen(fd, "r+"); > > > > + if (fd == -1 || !fp) > > > > > > > > Why did you need to do such code restructuring? > > > > > > "Assignment statement in conditional". I also happens to be more readable. > > > > Feh. Please back this type of changes out. The logic is not the same > > before and after. > > Here is the clearer fix: The original code was cleaner. Since we are getting into HO's; we should stick with the original version. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message