diff options
author | Max Kellermann <max@duempel.org> | 2013-10-15 22:18:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-15 22:47:46 +0200 |
commit | 12ab556477d8ffc620a84d29ac8abfaefeb4985f (patch) | |
tree | 189a4507770628f430484d92a8e7524c9fbdee57 /src/output/HttpdClient.hxx | |
parent | 509f8dab8946cfc311def89f62352c0881e73348 (diff) | |
download | mpd-12ab556477d8ffc620a84d29ac8abfaefeb4985f.tar.gz mpd-12ab556477d8ffc620a84d29ac8abfaefeb4985f.tar.xz mpd-12ab556477d8ffc620a84d29ac8abfaefeb4985f.zip |
event/BufferedSocket: pass writable pointer to OnSocketInput()
Remove the const_cast from HttpdClient.cxx, and avoid one allocation
in ClientRead.cxx.
Diffstat (limited to 'src/output/HttpdClient.hxx')
-rw-r--r-- | src/output/HttpdClient.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output/HttpdClient.hxx b/src/output/HttpdClient.hxx index d481898a2..90295fdf7 100644 --- a/src/output/HttpdClient.hxx +++ b/src/output/HttpdClient.hxx @@ -177,8 +177,7 @@ public: protected: virtual bool OnSocketReady(unsigned flags) override; - virtual InputResult OnSocketInput(const void *data, - size_t length) override; + virtual InputResult OnSocketInput(void *data, size_t length) override; virtual void OnSocketError(Error &&error) override; virtual void OnSocketClosed() override; }; |