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

This commit is contained in:
Max Kellermann 2015-08-06 10:14:35 +02:00
parent 291ee9f86a
commit ccd83748f7

View File

@ -227,10 +227,10 @@ inline void
FifoOutput::Cancel() FifoOutput::Cancel()
{ {
char buf[FIFO_BUFFER_SIZE]; char buf[FIFO_BUFFER_SIZE];
int bytes;
timer->Reset(); timer->Reset();
ssize_t bytes;
do { do {
bytes = read(input, buf, FIFO_BUFFER_SIZE); bytes = read(input, buf, FIFO_BUFFER_SIZE);
} while (bytes > 0 && errno != EINTR); } while (bytes > 0 && errno != EINTR);