aboutsummaryrefslogtreecommitdiffstats
path: root/src/TextInputStream.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 00:06:31 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 00:23:14 +0200
commit7d0269d2cec68c7e55df5b6db3d2266741534b17 (patch)
tree613f5d7b03bc9624f15167c76f8f4309603944cc /src/TextInputStream.cxx
parent52ffdb0a55e43153fa9fc1189316884a630df700 (diff)
downloadmpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.tar.gz
mpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.tar.xz
mpd-7d0269d2cec68c7e55df5b6db3d2266741534b17.zip
InputLegacy: move functions to the input_stream class
Diffstat (limited to 'src/TextInputStream.cxx')
-rw-r--r--src/TextInputStream.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/TextInputStream.cxx b/src/TextInputStream.cxx
index 486400f96..cbdcd2290 100644
--- a/src/TextInputStream.cxx
+++ b/src/TextInputStream.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "TextInputStream.hxx"
-#include "InputLegacy.hxx"
+#include "InputStream.hxx"
#include "util/fifo_buffer.h"
#include "util/Error.hxx"
@@ -54,8 +54,7 @@ bool TextInputStream::ReadLine(std::string &line)
--length;
Error error;
- nbytes = input_stream_lock_read(is, dest, length,
- error);
+ nbytes = is->LockRead(dest, length, error);
if (nbytes > 0)
fifo_buffer_append(buffer, nbytes);
else if (error.IsDefined()) {