]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2784] Fix for 2782 uses clock_gettime() instead of get_ostime()
authorHarlan Stenn <stenn@ntp.org>
Sat, 7 Mar 2015 01:51:49 +0000 (01:51 +0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 7 Mar 2015 01:51:49 +0000 (01:51 +0000)
bk: 54fa59b5p0TnP6on_LD4LajJBiWEeA

ChangeLog
ntpd/refclock_shm.c

index f18650867ba0c936d241a5aab01bbdb56c7ce511..c004c77f2431b42f63a100d8c5060978d5a163c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
 * [Bug 2775] ntp-keygen.c fails to compile under Windows.
 * [Bug 2782] Refactor refclock_shm.c, add memory barrier protection.
 * [Bug 2783] Quiet autoconf warnings about missing AC_LANG_SOURCE.
+* [Bug 2784] Fix for 2782 uses clock_gettime() instead of get_ostime().
 ---
 (4.2.8p1) 2015/02/04 Released by Harlan Stenn <stenn@ntp.org>
 
index 2e37fb0c1edc1e45db5ac9903229e186358ccafd..5be0889b3e40debc048fe016b25b552aa05e9e39 100644 (file)
@@ -391,7 +391,7 @@ static enum segstat_t shm_query(volatile struct shmTime *shm_in, struct shm_stat
 
     /*@-type@*//* splint is confused about struct timespec */
     shm_stat->tvc.tv_sec = shm_stat->tvc.tv_nsec = 0;
-    clock_gettime(CLOCK_REALTIME, &shm_stat->tvc);
+    get_ostime(&shm_stat->tvc);
 
     /* relying on word access to be atomic here */
     if (shm->valid == 0) {