]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix compile error when ICMP is not enabled
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 21 Mar 2008 22:47:56 +0000 (23:47 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 21 Mar 2008 22:47:56 +0000 (23:47 +0100)
src/ICMPSquid.cc

index 188cce381ac1e31be54bb0ef1710803b7ff297f3..d6acd26faa7532097b046bb003ef0abba4e22d54 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 -1;
+#endif /* USE_ICMP */
 }
 
 void