git: c4e47e45ab42 - stable/13 - __swbuf(): style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Sep 2022 17:02:24 UTC
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++;