1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 21:23:12 +02:00

Fixed the pipengines

This commit is contained in:
Adam
2011-08-07 22:34:16 -04:00
parent c6741d3765
commit ade92395a0
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ class PipeIO : public SocketIO
* @param sz How much to read
* @return Number of bytes received
*/
int Recv(Socket *s, char *buf, size_t sz) const
int Recv(Socket *s, char *buf, size_t sz)
{
static char dummy[512];
while (read(s->GetFD(), &dummy, 512) == 512);
@@ -21,7 +21,7 @@ class PipeIO : public SocketIO
* @param buf What to write
* @return Number of bytes written
*/
int Send(Socket *s, const Anope::string &buf) const
int Send(Socket *s, const Anope::string &buf)
{
static const char dummy = '*';
Pipe *pipe = debug_cast<Pipe *>(s);