From nobody Fri Sep 9 17:02:24 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 4MPMjr6b38z4brtQ; Fri, 9 Sep 2022 17:02:24 +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 4MPMjr65jPz47tV; Fri, 9 Sep 2022 17:02:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662742944; 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=0Sg/A+//vQ87FZ5OqPRfpUGE+SVpxRn0bpz/RLGeTW4=; b=FlRmR6xfkuzdhYc54m5+yg+3Huzb9uszun7SCQ8AkKiI4Yc6hH+rsCUkIscE0O+nEewbbU WFSEEIy4zQgjm/aMKYfMxXeWbsqEo/UknTBtmnbAyNpPxkZFh/1fvPeqLucG9o7y05Vqu+ N4v3bRwimv+XnurPsKCqMZ6wRnOASNN+Vgp6yNwOfBa4wilU8CeQkh9iv/sd1N6QDI2SfE fAinJ2rC5XOustnuvW55IydhbSNno+u/nHNonC2kZxBSxfPByVH9kb7o9iargipQsEQU7F R3ndCkTL5WOek0wGoccFqwupRyknwKTmojb6+LOpCWHDc7khqbAbJfqqDJwyMQ== 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 4MPMjr58W7z1Gqw; Fri, 9 Sep 2022 17:02:24 +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 289H2O9T033012; Fri, 9 Sep 2022 17:02:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 289H2O6W033011; Fri, 9 Sep 2022 17:02:24 GMT (envelope-from git) Date: Fri, 9 Sep 2022 17:02:24 GMT Message-Id: <202209091702.289H2O6W033011@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: c4e47e45ab42 - stable/13 - __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/stable/13 X-Git-Reftype: branch X-Git-Commit: c4e47e45ab42fa8f7e04ff5963fa40de35a72b33 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662742944; 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=0Sg/A+//vQ87FZ5OqPRfpUGE+SVpxRn0bpz/RLGeTW4=; b=CllvExclixJLdvkhJgDfZPuGfrRZeonGZtX1xQPaB6kswmcDxdd3vwrzKxFF+NdTsr7g8B lDlOe2IJOdRagNIrGqLFdYiOynkRPgdQTdAfOr0RKxvn4vDWthgVSnJcwtY4f9nyyKj6NC JxzdwYfMUVHuzOR6soRqvEq34OWctUwlG1tPrz2SBsHW4X2ZnHcWLRKlk+c2Ij1eT9MHlZ 8Ho9xWqY9491m8oEkyX+Tv0UXB4CRyvNyUNJ8Zo2TH0Xnx9LGSRYSTbZmj2nlUo86wOSjJ I5asQl2hmYG+jLEQS2VX0vErNwNh8o4xuXlGm9BLlpoDAIch7j5jP89cywOhtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662742944; a=rsa-sha256; cv=none; b=GvolScYl+x3txn4fRbC6R2y4s8uaZsmXL5VCAuX57uEcCHmxCK8w7T7kZeuBq1Ygj9cL57 j4EEgevtEdMjcHsLVx/WxBl80q9ylh0n7BVsYbuQ6YmsM1dmIdu4RSlOQZUkF1F5HoDhYr 9CoAmD6c1JwrAqux8q+2KPqQB2srOjqEeFZzUWFSHTs6LpsqPvXbYyyFoO4dm+S4JpfUx5 qCCEe+Zu8NlZo9TsFLXJMFNr0N9Q9DJKcPwkkHYHpg4ZpqznMYML+YLQ1sIe4YmQ7bfdVo mx8KpobAnTx4gfbstH2XQDYpvVBmA3gipz2BTbFb2ua3wiltuTgQxsYZ2U6iFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c4e47e45ab42fa8f7e04ff5963fa40de35a72b33 commit c4e47e45ab42fa8f7e04ff5963fa40de35a72b33 Author: Konstantin Belousov AuthorDate: 2022-09-02 14:00:56 +0000 Commit: Konstantin Belousov CommitDate: 2022-09-09 17:01:52 +0000 __swbuf(): style (cherry picked from commit 120bacabfd4f383f028bb309581e2366110d0c28) --- 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++;