From nobody Sat Sep 03 01:16:25 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MKH153S2hz4btZH; Sat, 3 Sep 2022 01:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MKH152vHPz3LMG; Sat, 3 Sep 2022 01:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662167785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8ZQRNJOK/PXLRK+Fw7gTZGZ9OECUN+Ot8HChibTF0I=; b=I8yGKgI1YxUsHTQ50wteOfKK9q6FUSF4QI1Fwp0ApsM29BsUZv1d9ty1IfF9nkD85sIGvT ACz3TZsIyNCrwVf6xtsv9/8JDTy921UtmjxYKTy5QZsJKE6fWPT9NZHcp1iFLXENU89KFZ 26dCa/ISn67i1jZBXzmBgGNICzrJ4uRJ5fHqh5pJwa8IPbA/nw1RLHOLTvEdL5M1FUEfFq Mb2lhSlqKR55PvNdulf0kOx5QTddmuS2SXNBDa8jONj+dVYjMmpSui3Ne+x89/LPcaQmdX p7m0oRwgbRKUdXq/bgKp1VvFaNR1KeS5PnKlnq5IUSm8zjLyH4AbC9ks3QzT+A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MKH151lzhz10Ng; Sat, 3 Sep 2022 01:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2831GPuQ090080; Sat, 3 Sep 2022 01:16:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2831GPPQ090079; Sat, 3 Sep 2022 01:16:25 GMT (envelope-from git) Date: Sat, 3 Sep 2022 01:16:25 GMT Message-Id: <202209030116.2831GPPQ090079@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 120bacabfd4f - main - __swbuf(): style List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 120bacabfd4f383f028bb309581e2366110d0c28 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662167785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8ZQRNJOK/PXLRK+Fw7gTZGZ9OECUN+Ot8HChibTF0I=; b=Zxp0j5i3IOQXCa5i2DM1VuUFf+kyWHrTbcNTYDaktPGnfPPp11dKQtENKbPwKt/tbZMHSr L/DkDxkaQyIcGZCEgFGVeOCYg7LY4Otqr4cWLkT6oTBwJFlgz/2j5+K3Md7gUr6TFJ6RKI +6Fyi0uNAhb85RHw2T30fV+drklkxKzU3VIadK4oRCqIQXQAjTTeEtZuU1zQ0twHzI9z4L T2MrM44Rr3qowqDhw+xI2sm7iqrGafsZ6b/0953eyJhCr69fTXlnvebtK/yIlskdZbJNqQ rOwUVRQW19u37z3MfHpEoTHF8jWb8OJBnZ9feeJ3HDy7gNN26mHJ9u60FcR6vw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662167785; a=rsa-sha256; cv=none; b=VhrUCl+73bPlp7WEOuHnJDhNkNad9qcH18isqoudVKqvfN5qmbj7qF9rmiSRT3ImTeeWif TY9HD0a1yymAG1kvwBPKtyghSm3Sy8A2Egye34eSBkPnfG8AcNluxZ+qo5/PnGDrqnKqsI uvKWfvh9T4UK0ph/B9+B7P/xwbJhEyp/LyqdqSJjdyN9HM487eRhEOFYFgWbRejubXPPnP 7a9WGcnHHzlFX78b5Btpu9idRIIIymDeeM3q9UZsS3S5n0apFZxXU2fCovmCF635qG3jnw cnSO5ApkXtYJn/JJwUyB3EvSWFQQVn6P3ane/dbzZGqAQjZMzt93+jFxrjMVmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=120bacabfd4f383f028bb309581e2366110d0c28 commit 120bacabfd4f383f028bb309581e2366110d0c28 Author: Konstantin Belousov AuthorDate: 2022-09-02 14:00:56 +0000 Commit: Konstantin Belousov CommitDate: 2022-09-03 01:06:41 +0000 __swbuf(): style Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36427 --- lib/libc/stdio/wbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdio/wbuf.c b/lib/libc/stdio/wbuf.c index 6cd75145a271..d389cdab0353 100644 --- a/lib/libc/stdio/wbuf.c +++ b/lib/libc/stdio/wbuf.c @@ -82,7 +82,7 @@ __swbuf(int c, FILE *fp) */ n = fp->_p - fp->_bf._base; if (n >= fp->_bf._size) { - if (__fflush(fp)) + if (__fflush(fp) != 0) return (EOF); n = 0; } @@ -90,7 +90,7 @@ __swbuf(int c, FILE *fp) *fp->_p++ = c; old_p = fp->_p; if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n')) { - if (__fflush(fp)) { + if (__fflush(fp) != 0) { if (fp->_p == old_p) { fp->_p--; fp->_w++;