]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys: move DRIFT_REMOVAL_INTERVAL definition
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 15 Sep 2015 15:38:58 +0000 (17:38 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 17 Sep 2015 13:52:49 +0000 (15:52 +0200)
In the SunOS and Solaris drivers DRIFT_REMOVAL_INTERVAL needs to be
defined before it's used. This was broken in commit
b6a27df5b9be0f07f151c8fba311cb7eadb2b13e.

sys_solaris.c
sys_sunos.c

index 6c018ee945dd6649b6c26f2383bcc1a5b9e6af26..463f80ce00d7ab55e99d879cfc0046b48a4aa55d 100644 (file)
@@ -83,6 +83,8 @@ static int index=0;
 /* If 1, need to run dosynctodr().  If 0, don't */
 static int need_dosynctodr = -1;
 
+/* Interval in seconds between adjustments to cancel systematic drift */
+#define DRIFT_REMOVAL_INTERVAL (4.0)
 
 #define GET_ZERO (zeroes[index^=1])
 
@@ -305,9 +307,6 @@ immediate_step(void)
 
 /* ================================================== */
 
-/* Interval in seconds between adjustments to cancel systematic drift */
-#define DRIFT_REMOVAL_INTERVAL (4.0)
-
 static int drift_removal_running = 0;
 static SCH_TimeoutID drift_removal_id;
 
index 1e7f3ab7e9e5420db65cc2523c1390111f5d82e3..f3eb608026e9df08a0ab48483d8ceea89871f603 100644 (file)
@@ -76,6 +76,9 @@ static double adjustment_requested;
    */
 static unsigned long our_tickadj = 100;
 
+/* Interval in seconds between adjustments to cancel systematic drift */
+#define DRIFT_REMOVAL_INTERVAL (4.0)
+
 /* ================================================== */
 
 static void
@@ -291,9 +294,6 @@ immediate_step(void)
 
 /* ================================================== */
 
-/* Interval in seconds between adjustments to cancel systematic drift */
-#define DRIFT_REMOVAL_INTERVAL (4.0)
-
 static int drift_removal_running = 0;
 static SCH_TimeoutID drift_removal_id;