]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows: rename TcpLogger::connect
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 16 Jun 2014 02:49:05 +0000 (20:49 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 16 Jun 2014 02:49:05 +0000 (20:49 -0600)
Windows sockets API is mapped via #define macros. connect() macro and
this TcpLogger method collide. Rename the method doConnect().

src/log/TcpLogger.cc
src/log/TcpLogger.h

index 647f6233228ae59cbe05031d76389b0bc63369c0..2e9b49f791c3b8391707d6cc28dea3ac188293af 100644 (file)
@@ -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");
 
index 750cd6e89fce9bb3a6aa7354ecd1de49a7df7036..94843acca67c3b50b6751444fefb824eebdf814c 100644 (file)
@@ -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 */