[ntpsec commit] Fix compiler warning when no refclocks.
Hal Murray
murray at ntpsec.org
Sun Oct 4 03:34:11 UTC 2015
Module: ntpsec
Branch: master
Commit: b85040eeda0ece6b339b6701d4ed407a02571241
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=b85040eeda0ece6b339b6701d4ed407a02571241
Author: Hal Murray <hmurray at megapathdsl.net>
Date: Sat Oct 3 20:33:51 2015 -0700
Fix compiler warning when no refclocks.
---
ntpd/ntp_config.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c
index c03e7ce..2aef8ac 100644
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -3294,6 +3294,7 @@ config_fudge(
)
{
addr_opts_node *curr_fudge;
+# ifdef REFCLOCK
attr_val *curr_opt;
sockaddr_u addr_sock;
address_node *addr_node;
@@ -3393,11 +3394,14 @@ config_fudge(
exit(curr_opt->attr ? curr_opt->attr : 1);
}
}
-# ifdef REFCLOCK
if (!err_flag)
refclock_control(&addr_sock, &clock_stat, NULL);
-# endif
}
+# else
+ curr_fudge = HEAD_PFIFO(ptree->fudge);
+ if (curr_fudge != NULL)
+ msyslog(LOG_ERR, "Fudge commands not supported: built without refclocks");
+# endif
}
#endif /* !SIM */
More information about the vc
mailing list