From: Amos Jeffries Date: Mon, 16 Jun 2014 02:47:16 +0000 (-0600) Subject: Windows: rename ConnOpener::connect X-Git-Tag: SQUID_3_4_6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=816ce1889ff49d37da43da2b1ddd86b0d515b5d6;p=thirdparty%2Fsquid.git Windows: rename ConnOpener::connect Windows sockets API is mapped via #define macros. connect() macro and this ConnOpener method collide. Rename the method doConnect(). --- diff --git a/src/comm/ConnOpener.cc b/src/comm/ConnOpener.cc index 4c95f37b19..cc07e69487 100644 --- a/src/comm/ConnOpener.cc +++ b/src/comm/ConnOpener.cc @@ -230,7 +230,7 @@ Comm::ConnOpener::start() } if (createFd()) - connect(); + doConnect(); } /// called at the end of Comm::ConnOpener::DelayedConnectRetry event @@ -241,7 +241,7 @@ Comm::ConnOpener::restart() calls_.sleep_ = false; if (createFd()) - connect(); + doConnect(); } /// Create a socket for the future connection or return false. @@ -311,7 +311,7 @@ Comm::ConnOpener::connected() /// Make an FD connection attempt. void -Comm::ConnOpener::connect() +Comm::ConnOpener::doConnect() { Must(conn_ != NULL); Must(temporaryFd_ >= 0); @@ -344,7 +344,7 @@ Comm::ConnOpener::connect() } else { // send ERROR back to the upper layer. debugs(5, 5, HERE << conn_ << ": * - ERR tried too many times already."); - sendAnswer(COMM_ERR_CONNECT, xerrno, "Comm::ConnOpener::connect"); + sendAnswer(COMM_ERR_CONNECT, xerrno, "Comm::ConnOpener::doConnect"); } } } @@ -426,7 +426,7 @@ Comm::ConnOpener::timeout(const CommTimeoutCbParams &) } /* Legacy Wrapper for the retry event after COMM_INPROGRESS - * XXX: As soon as Comm::SetSelect() accepts Async calls we can use a ConnOpener::connect call + * XXX: As soon as Comm::SetSelect() accepts Async calls we can use a ConnOpener::doConnect call */ void Comm::ConnOpener::InProgressConnectRetry(int fd, void *data) @@ -437,7 +437,7 @@ Comm::ConnOpener::InProgressConnectRetry(int fd, void *data) // Ew. we are now outside the all AsyncJob protections. // get back inside by scheduling another call... typedef NullaryMemFunT Dialer; - AsyncCall::Pointer call = JobCallback(5, 4, Dialer, cs, Comm::ConnOpener::connect); + AsyncCall::Pointer call = JobCallback(5, 4, Dialer, cs, Comm::ConnOpener::doConnect); ScheduleCallHere(call); } delete ptr; diff --git a/src/comm/ConnOpener.h b/src/comm/ConnOpener.h index f4dce459de..4326ac994f 100644 --- a/src/comm/ConnOpener.h +++ b/src/comm/ConnOpener.h @@ -43,7 +43,7 @@ private: void sendAnswer(comm_err_t errFlag, int xerrno, const char *why); static void InProgressConnectRetry(int fd, void *data); static void DelayedConnectRetry(void *data); - void connect(); + void doConnect(); void connected(); void lookupLocalAddress();