]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: sleep() is sometimes a macro
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 6 Dec 2013 12:16:22 +0000 (05:16 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 6 Dec 2013 12:16:22 +0000 (05:16 -0700)
sleep() is sometimes defined as a macro. Such as in Squid compat library.
Use another name for the sleep starting method in class Ipc::UdsOp

  This is an iCelero Project

src/ipc/UdsOp.cc
src/ipc/UdsOp.h

index 9e32255d95691ea65e24c21c53791a2c1659567f..ee2ef714b0879f0d98f0eaa86e59aa46fd4363bf 100644 (file)
@@ -126,12 +126,12 @@ void Ipc::UdsSender::wrote(const CommIoCbParams& params)
     if (params.flag != COMM_OK && retries-- > 0) {
         // perhaps a fresh connection and more time will help?
         conn()->close();
-        sleep();
+        startSleep();
     }
 }
 
 /// pause for a while before resending the message
-void Ipc::UdsSender::sleep()
+void Ipc::UdsSender::startSleep()
 {
     Must(!sleeping);
     sleeping = true;
index d7e704799396b190513ee0af57b39851d171ef35..8373c2c36ca7acc09447f1afbd064886d33ec04c 100644 (file)
@@ -71,7 +71,7 @@ protected:
     virtual void timedout(); // UdsOp API
 
 private:
-    void sleep();
+    void startSleep();
     void cancelSleep();
     static void DelayedRetry(void *data);
     void delayedRetry();