io.cpp: use BUFFER_SIZE

-Wunused-macros showed that a recent change used 4096 instead of
BUFFER_SIZE as previously (also 4096).
This commit is contained in:
Aaron Gyes 2019-02-12 15:37:09 -08:00
parent a19206036c
commit c931e33759

View File

@ -94,7 +94,7 @@ void io_buffer_t::run_background_fillthread(autoclose_fd_t readfd) {
scoped_lock locker(append_lock_);
ssize_t ret;
do {
char buff[4096];
char buff[BUFFER_SIZE];
ret = read(fd, buff, sizeof buff);
if (ret > 0) {
buffer_.append(&buff[0], &buff[ret]);