From owner-svn-src-head@freebsd.org Fri Feb 16 18:37:12 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 896ABF06FCE; Fri, 16 Feb 2018 18:37:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17E986AC0C; Fri, 16 Feb 2018 18:37:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 23D6B10AFAD; Fri, 16 Feb 2018 13:37:11 -0500 (EST) From: John Baldwin To: Mark Johnston Cc: Benno Rice , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r329269 - head/stand/i386/boot2 Date: Fri, 16 Feb 2018 09:58:04 -0800 Message-ID: <2488298.mWgVtp3Hqz@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <20180216164445.GB55620@raichu> References: <201802141807.w1EI7Ror036078@repo.freebsd.org> <20180216164445.GB55620@raichu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Fri, 16 Feb 2018 13:37:11 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2018 18:37:12 -0000 On Friday, February 16, 2018 11:44:45 AM Mark Johnston wrote: > On Wed, Feb 14, 2018 at 06:07:27PM +0000, Benno Rice wrote: > > Author: benno > > Date: Wed Feb 14 18:07:27 2018 > > New Revision: 329269 > > URL: https://svnweb.freebsd.org/changeset/base/329269 > > > > Log: > > Reformat to come significantly closer to style(9). > > > > Reviewed by: imp, jhibbits > > Differential Revision: https://reviews.freebsd.org/D14366 > > > > Modified: > > head/stand/i386/boot2/boot2.c > > > > Modified: head/stand/i386/boot2/boot2.c > > ============================================================================== > > --- head/stand/i386/boot2/boot2.c Wed Feb 14 18:05:37 2018 (r329268) > > +++ head/stand/i386/boot2/boot2.c Wed Feb 14 18:07:27 2018 (r329269) > > [...] > > #if SERIAL > > - } else if (c == 'S') { > > - j = 0; > > - while ((unsigned int)(i = *arg++ - '0') <= 9) > > - j = j * 10 + i; > > - if (j > 0 && i == -'0') { > > - comspeed = j; > > - break; > > - } > > - /* Fall through to error below ('S' not in optstr[]). */ > > + } else if (c == 'S') { > > + j = 0; > > + while (*arg <= '9') { > > + i = (unsigned int)(*arg - '0'); > > + j = j * 10 + i; > > + arg++; > > + } > > + if (j > 0 && i == -'0') { > > + comspeed = j; > > + break; > > + } > > The gcc build is failing now with a claim that "i" may be used > uninitialized in the if-statement above. It looks like a bogus error > though. If this commit mixed functional changes with the reindent it needs to be reverted and the reindent needs to be re-committed as a separate commit. The functional changes (if intended) should then be a separate commit once they are tested. -- John Baldwin