]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do no use icmp_sock when USE_ICMP is not defined.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 24 Mar 2008 04:20:55 +0000 (22:20 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 24 Mar 2008 04:20:55 +0000 (22:20 -0600)
src/ICMPSquid.cc

index 188cce381ac1e31be54bb0ef1710803b7ff297f3..aae514dd9cdceb42c6eb54fbdc253fce1ed8548b 100644 (file)
@@ -263,8 +263,10 @@ ICMPSquid::Open(void)
     debugs(37, 4, HERE << "Pinger handle: 0x" << std::hex << hIpc << std::dec << ", PID: " << pid);
 
 #endif /* _SQUID_MSWIN_ */
-#endif /* USE_ICMP */
     return icmp_sock;
+#else  /* USE_ICMP */
+       return 0;
+#endif /* USE_ICMP */
 }
 
 void