Fix unused variable warning (no IPv6)
ntp_control.c:
Fix unused variable warning (no REFCLOCKs)
ChangeLog:
Fix unused variable warnings.
bk: 4db8e79d8HZJLPYWZCBMXjd52Pyo3Q
+* Fix a couple of unused variable warnings.
(4.2.7p158) 2011/04/24 Released by Harlan Stenn <stenn@ntp.org>
* Update libevent --disable-libevent-regress handling to work when
building libevent using mingw.
* the reference clock driver doesn't set peer->sstclktype to something
* different than CTL_SST_TS_UNSPEC.
*/
+#ifdef REFCLOCK
static u_char clocktypes[] = {
CTL_SST_TS_NTP, /* REFCLK_NONE (0) */
CTL_SST_TS_LOCAL, /* REFCLK_LOCALCLOCK (1) */
CTL_SST_TS_UHF, /* REFCLK_RIPENCC (43) */
CTL_SST_TS_UHF, /* REFCLK_NEOCLOCK4X (44) */
};
+#endif /* REFCLOCK */
/*
u_short port
)
{
- int v4wild, v6wild;
+ int v4wild;
+#ifdef INCLUDE_IPV6_SUPPORT
+ int v6wild;
+#endif
sockaddr_u wildaddr;
nic_rule_action action;
struct interface * wildif;