Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 2002 03:33:28 -0800
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Mark Murray <mark@grondar.za>
Cc:        Mark Murray <markm@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/rwall rwall.c
Message-ID:  <20020307033328.A64158@dragon.nuxi.com>
In-Reply-To: <200203071127.g27BR2RV009394@grimreaper.grondar.org>; from mark@grondar.za on Thu, Mar 07, 2002 at 11:27:02AM %2B0000
References:  <20020307030244.B63484@dragon.nuxi.com> <200203071127.g27BR2RV009394@grimreaper.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020307033328.A64158>