diff options
author | Max Kellermann <max@duempel.org> | 2015-08-06 10:14:35 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-06 10:14:35 +0200 |
commit | ccd83748f79df00a9a4c5bb6c772d98ab3fa3d3f (patch) | |
tree | f31047a15a1e844ff1566c81750d89848fcbbc3b /src/output | |
parent | 291ee9f86a172ab27cf4e95209a8dd1a2921c4ca (diff) |
output/fifo: use ssize_t for the read() result
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/plugins/FifoOutputPlugin.cxx | 2 |
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); |