From 58b8398aa0e9b5f5ceb63cb2937afa6b56467ed4 Mon Sep 17 00:00:00 2001 From: Dimitris Papastamos Date: Thu, 23 Jun 2016 09:42:50 +0100 Subject: [PATCH] output/sndio: Use size_t instead of ssize_t Some minor style fixes as well. --- src/output/plugins/SndioOutputPlugin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/output/plugins/SndioOutputPlugin.cxx b/src/output/plugins/SndioOutputPlugin.cxx index b4f807ce9..69747ae2c 100644 --- a/src/output/plugins/SndioOutputPlugin.cxx +++ b/src/output/plugins/SndioOutputPlugin.cxx @@ -37,6 +37,8 @@ static constexpr unsigned MPD_SNDIO_BUFFER_TIME_MS = 250; +static constexpr Domain sndio_output_domain("sndio_output"); + class SndioOutput { friend struct AudioOutputWrapper; AudioOutput base; @@ -60,8 +62,6 @@ public: void Cancel(); }; -static constexpr Domain sndio_output_domain("sndio_output"); - bool SndioOutput::Configure(const ConfigBlock &block, Error &error) { @@ -69,7 +69,7 @@ SndioOutput::Configure(const ConfigBlock &block, Error &error) return false; device = block.GetBlockValue("device", SIO_DEVANY); buffer_time = block.GetBlockValue("buffer_time", - MPD_SNDIO_BUFFER_TIME_MS); + MPD_SNDIO_BUFFER_TIME_MS); return true; } @@ -178,7 +178,7 @@ SndioOutput::Close() size_t SndioOutput::Play(const void *chunk, size_t size, Error &error) { - ssize_t n; + size_t n; while (1) { n = sio_write(sio_hdl, chunk, size);