event/BufferedSocket: pass writable pointer to OnSocketInput()

Remove the const_cast from HttpdClient.cxx, and avoid one allocation
in ClientRead.cxx.
This commit is contained in:
Max Kellermann
2013-10-15 22:18:37 +02:00
parent 509f8dab89
commit 12ab556477
5 changed files with 23 additions and 20 deletions

View File

@@ -111,8 +111,7 @@ public:
private:
/* virtual methods from class BufferedSocket */
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;