git: 120bacabfd4f - main - __swbuf(): style

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sat, 03 Sep 2022 01:16:25 UTC
The branch main has been updated by kib:

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

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