Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2022 17:02:24 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c4e47e45ab42 - stable/13 - __swbuf(): style
Message-ID:  <202209091702.289H2O6W033011@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=c4e47e45ab42fa8f7e04ff5963fa40de35a72b33

commit c4e47e45ab42fa8f7e04ff5963fa40de35a72b33
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-09-02 14:00:56 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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++;



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