[ntpsec commit] Fix ntpfrob port bugs revealed by FreeBSD.

Eric S. Raymond esr at ntpsec.org
Tue Oct 20 03:59:01 UTC 2015


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

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Tue Oct 20 03:57:57 2015 +0000

Fix ntpfrob port bugs revealed by FreeBSD.

---

 ntpfrob/pps-api.c | 2 +-
 ntpfrob/tickadj.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ntpfrob/pps-api.c b/ntpfrob/pps-api.c
index 6c526b3..050b227 100644
--- a/ntpfrob/pps-api.c
+++ b/ntpfrob/pps-api.c
@@ -66,7 +66,7 @@ void ppscheck(char *device)
 	pps_params_t pp;
 	pps_handle_t ph;
 	int i, mode;
-	u_int olda, oldc;
+	u_int olda = 0, oldc = 0;
 	struct timespec to;
 
 	if (device == NULL)
diff --git a/ntpfrob/tickadj.c b/ntpfrob/tickadj.c
index aba4ed8..5f6e25c 100644
--- a/ntpfrob/tickadj.c
+++ b/ntpfrob/tickadj.c
@@ -85,7 +85,7 @@ void tickadj(const bool json, const int newtick)
 #endif /* STRUCT_TIMEX_HAS_TIME_TICK */
 	}
 
-}
 #endif /* HAVE_ADJTIMEX */
+}
 
 /* end */



More information about the vc mailing list