From: Harlan Stenn Date: Sun, 13 May 2007 07:42:41 +0000 (-0400) Subject: The new config code missed an #ifdef for building without refclocks X-Git-Tag: NTP_4_2_5P32~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ab68363eabd743a6b26f50dcb9fd5ff8eb7133a;p=thirdparty%2Fntp.git The new config code missed an #ifdef for building without refclocks bk: 4646c171EckodVEjdJvhsclHZ42P_Q --- diff --git a/ChangeLog b/ChangeLog index d247a1ecd..f0966b744 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* The new config code missed an #ifdef for building without refclocks. * Distribute some files needed by the new config parsing code. * [Bug 819] Timeout for WaitForMultipleObjects was 500ms instead of INFINITE * Use autogen 5.9.1. diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c index 4ef28d2d5..5fa0d5b6b 100644 --- a/ntpd/ntp_config.c +++ b/ntpd/ntp_config.c @@ -1417,9 +1417,13 @@ static void config_fudge(void) free_node(curr_opt); } + +#ifdef REFCLOCK if (!err_flag) refclock_control(&addr_sock, &clock_stat, (struct refclockstat *)0); +#endif + destroy_queue(curr_fudge->options); free_node(curr_fudge); }