Update file_stream.c

This commit is contained in:
Alcaro 2017-12-04 13:52:11 +01:00 committed by GitHub
parent 130e4522e2
commit e4bb8e7aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,17 +121,6 @@ FILE* filestream_get_fp(RFILE *stream)
return stream->fp;
}
int filestream_get_fd(RFILE *stream)
{
if (!stream)
return -1;
#if defined(HAVE_BUFFERED_IO)
if ((stream->hints & RFILE_HINT_UNBUFFERED) == 0)
return fileno(stream->fp);
#endif
return stream->fd;
}
const char *filestream_get_ext(RFILE *stream)
{
if (!stream)