diff options
Diffstat (limited to 'libio/filedoalloc.c')
-rw-r--r-- | libio/filedoalloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c index d6517e493b..190c009172 100644 --- a/libio/filedoalloc.c +++ b/libio/filedoalloc.c @@ -74,13 +74,13 @@ local_isatty (int fd) /* Allocate a file buffer, or switch to unbuffered I/O. Streams for TTY devices default to line buffered. */ int -_IO_file_doallocate (_IO_FILE *fp) +_IO_file_doallocate (FILE *fp) { - _IO_size_t size; + size_t size; char *p; struct stat64 st; - size = _IO_BUFSIZ; + size = BUFSIZ; if (fp->_fileno >= 0 && __builtin_expect (_IO_SYSSTAT (fp, &st), 0) >= 0) { if (S_ISCHR (st.st_mode)) @@ -94,7 +94,7 @@ _IO_file_doallocate (_IO_FILE *fp) fp->_flags |= _IO_LINE_BUF; } #if defined _STATBUF_ST_BLKSIZE - if (st.st_blksize > 0 && st.st_blksize < _IO_BUFSIZ) + if (st.st_blksize > 0 && st.st_blksize < BUFSIZ) size = st.st_blksize; #endif } |