From: Amos Jeffries Date: Mon, 16 Jun 2014 02:49:05 +0000 (-0600) Subject: Windows: rename TcpLogger::connect X-Git-Tag: SQUID_3_4_6~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=920fe4849b46f07bb970889a18159aecd8ac4af1;p=thirdparty%2Fsquid.git Windows: rename TcpLogger::connect Windows sockets API is mapped via #define macros. connect() macro and this TcpLogger method collide. Rename the method doConnect(). --- diff --git a/src/log/TcpLogger.cc b/src/log/TcpLogger.cc index 647f623322..2e9b49f791 100644 --- a/src/log/TcpLogger.cc +++ b/src/log/TcpLogger.cc @@ -58,7 +58,7 @@ Log::TcpLogger::~TcpLogger() void Log::TcpLogger::start() { - connect(); + doConnect(); } bool @@ -231,7 +231,7 @@ Log::TcpLogger::appendChunk(const char *chunk, const size_t len) /// starts [re]connecting to the remote logger void -Log::TcpLogger::connect() +Log::TcpLogger::doConnect() { if (shutting_down) return; @@ -313,7 +313,7 @@ Log::TcpLogger::delayedReconnect() Must(reconnectScheduled); Must(!conn); reconnectScheduled = false; - connect(); + doConnect(); } /// Comm::Write callback @@ -328,7 +328,7 @@ Log::TcpLogger::writeDone(const CommIoCbParams &io) debugs(MY_DEBUG_SECTION, 2, "write failure: " << xstrerr(io.xerrno)); // keep the first buffer (the one we failed to write) disconnect(); - connect(); + doConnect(); } else { debugs(MY_DEBUG_SECTION, 5, "write successful"); diff --git a/src/log/TcpLogger.h b/src/log/TcpLogger.h index 750cd6e89f..94843acca6 100644 --- a/src/log/TcpLogger.h +++ b/src/log/TcpLogger.h @@ -66,7 +66,7 @@ private: void appendChunk(const char *chunk, const size_t len); void writeIfNeeded(); void writeIfPossible(); - void connect(); + void doConnect(); void disconnect(); /* comm callbacks */