[ntpsec commit] A couple of fixes for NetBSD

Hal Murray murray at ntpsec.org
Wed Sep 30 10:57:33 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    5923c1fd5ddc7ad51ccd5bdc794e5fc9d157a324
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=5923c1fd5ddc7ad51ccd5bdc794e5fc9d157a324

Author:    Hal Murray <hmurray at megapathdsl.net>
Date:      Wed Sep 30 03:56:55 2015 -0700

A couple of fixes for NetBSD

---

 lib/isc/unix/ifiter_sysctl.c | 2 +-
 libntp/systime.c             | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/isc/unix/ifiter_sysctl.c b/lib/isc/unix/ifiter_sysctl.c
index 7a7db55..eb3bb84 100644
--- a/lib/isc/unix/ifiter_sysctl.c
+++ b/lib/isc/unix/ifiter_sysctl.c
@@ -268,7 +268,7 @@ internal_current(isc_interfaceiter_t *iter) {
 
 		return (ISC_R_SUCCESS);
 	} else {
-		printf("warning: unexpected interface list message type\n"));
+		printf("warning: unexpected interface list message type\n");
 		return (ISC_R_IGNORE);
 	}
 }
diff --git a/libntp/systime.c b/libntp/systime.c
index 78f6b75..b85e251 100644
--- a/libntp/systime.c
+++ b/libntp/systime.c
@@ -508,8 +508,12 @@ step_systime(
 	 */
 	tvdiff = abs_tval(sub_tval(timetv, tvlast));
 	if (tvdiff.tv_sec > 0) {
+#ifndef OTIME_MSG
 # define OTIME_MSG	"Old NTP time"
+#endif
+#ifndef NTIME_MSG
 # define NTIME_MSG	"New NTP time"
+#endif
 		struct utmpx utx;
 
 		ZERO(utx);



More information about the vc mailing list