From ccd83748f79df00a9a4c5bb6c772d98ab3fa3d3f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 6 Aug 2015 10:14:35 +0200 Subject: output/fifo: use ssize_t for the read() result --- src/output/plugins/FifoOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/output') diff --git a/src/output/plugins/FifoOutputPlugin.cxx b/src/output/plugins/FifoOutputPlugin.cxx index aa2b74bc2..f91cacb0f 100644 --- a/src/output/plugins/FifoOutputPlugin.cxx +++ b/src/output/plugins/FifoOutputPlugin.cxx @@ -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); -- cgit v1.2.3