summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/makebuf.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2005-12-28 18:50:22 +0000
committermillert <millert@openbsd.org>2005-12-28 18:50:22 +0000
commit5dee15dd70e2fee3212931d83c4f85b671d37d56 (patch)
tree682454364a7edc7b962bd28e7da79850f753a4b4 /lib/libc/stdio/makebuf.c
parentsymbolic + 3 (diff)
downloadwireguard-openbsd-5dee15dd70e2fee3212931d83c4f85b671d37d56.tar.xz
wireguard-openbsd-5dee15dd70e2fee3212931d83c4f85b671d37d56.zip
Remove useless if() introduced by accident in rev 1.3. Checking the
flag for sprintf-ness is not useful in a code path that is not called for sprintf and friends.
Diffstat (limited to 'lib/libc/stdio/makebuf.c')
-rw-r--r--lib/libc/stdio/makebuf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/stdio/makebuf.c b/lib/libc/stdio/makebuf.c
index ebb34f7b865..d47e27cf30f 100644
--- a/lib/libc/stdio/makebuf.c
+++ b/lib/libc/stdio/makebuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makebuf.c,v 1.7 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: makebuf.c,v 1.8 2005/12/28 18:50:22 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -100,10 +100,8 @@ __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty)
* __sseek is mainly paranoia.) It is safe to set _blksize
* unconditionally; it will only be used if __SOPT is also set.
*/
- if ((fp->_flags & __SSTR) == 0) {
- *bufsize = st.st_blksize;
- fp->_blksize = st.st_blksize;
- }
+ *bufsize = st.st_blksize;
+ fp->_blksize = st.st_blksize;
return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ?
__SOPT : __SNPT);
}