Commit ccd83748 authored by Max Kellermann's avatar Max Kellermann

output/fifo: use ssize_t for the read() result

parent 291ee9f8
......@@ -227,10 +227,10 @@ inline void
FifoOutput::Cancel()
{
char buf[FIFO_BUFFER_SIZE];
int bytes;
timer->Reset();
ssize_t bytes;
do {
bytes = read(input, buf, FIFO_BUFFER_SIZE);
} while (bytes > 0 && errno != EINTR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment