summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-12-28 18:50:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-12-28 18:50:23 +0000
commitf1613960cb37c5523f53e87820ba81927d6e00d3 (patch)
tree6b283210988aedffd214377fe49d7fea79f0693b /lib/libc/stdio
parentd10105467dc94b220a4a4cc96c697392c2dd8630 (diff)
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')
-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);
}