summaryrefslogtreecommitdiff
path: root/src/output/plugins/FifoOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-06 10:14:35 +0200
committerMax Kellermann <max@duempel.org>2015-08-06 10:14:35 +0200
commitccd83748f79df00a9a4c5bb6c772d98ab3fa3d3f (patch)
treef31047a15a1e844ff1566c81750d89848fcbbc3b /src/output/plugins/FifoOutputPlugin.cxx
parent291ee9f86a172ab27cf4e95209a8dd1a2921c4ca (diff)
output/fifo: use ssize_t for the read() result
Diffstat (limited to 'src/output/plugins/FifoOutputPlugin.cxx')
-rw-r--r--src/output/plugins/FifoOutputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
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);