From: Alex Rousskov Date: Mon, 24 Mar 2008 04:20:55 +0000 (-0600) Subject: Do no use icmp_sock when USE_ICMP is not defined. X-Git-Tag: SQUID_3_1_0_1~49^2~302^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c388438c8c58f481962e6f1f99a97dced947223;p=thirdparty%2Fsquid.git Do no use icmp_sock when USE_ICMP is not defined. --- diff --git a/src/ICMPSquid.cc b/src/ICMPSquid.cc index 188cce381a..aae514dd9c 100644 --- a/src/ICMPSquid.cc +++ b/src/ICMPSquid.cc @@ -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