diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-30 12:32:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-30 12:32:56 +0000 |
commit | 89ec07746225ae1f45cb7582198340ffd1891f25 (patch) | |
tree | 7bc186417991947b74fb6d20384f441769d9f7d8 /main/openntpd/adjtimex.patch | |
parent | 0abd7848ce2b314efe1684443b080882a5d80a4f (diff) | |
download | aports-89ec07746225ae1f45cb7582198340ffd1891f25.tar.bz2 aports-89ec07746225ae1f45cb7582198340ffd1891f25.tar.xz |
main/openntpd: upgrade to 5.7_p1
Diffstat (limited to 'main/openntpd/adjtimex.patch')
-rw-r--r-- | main/openntpd/adjtimex.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/openntpd/adjtimex.patch b/main/openntpd/adjtimex.patch new file mode 100644 index 0000000000..6dbf529769 --- /dev/null +++ b/main/openntpd/adjtimex.patch @@ -0,0 +1,29 @@ +--- ./compat/adjfreq_linux.c.orig ++++ ./compat/adjfreq_linux.c +@@ -37,20 +37,20 @@ + txc.modes = ADJ_FREQUENCY; + txc.freq = *freq / 1e3 / (1LL << 16); + +- if ((ntp_adjtime(&txc)) == -1) +- log_warn("ntp_adjtime (2) failed"); ++ if ((adjtimex(&txc)) == -1) ++ log_warn("adjtimex (2) failed"); + +- log_debug("ntp_adjtime adjusted frequency by %fppm", ++ log_debug("adjtimex adjusted frequency by %fppm", + ((txc.freq * 1e3) * (1LL<<16) / 1e3 / (1LL << 32))); + } + if (oldfreq != NULL) { + txc.modes = 0; +- if ((ntp_adjtime(&txc)) == -1) { +- log_warn("ntp_adjtime (1) failed"); ++ if ((adjtimex(&txc)) == -1) { ++ log_warn("adjtimex (1) failed"); + return -1; + } + newfreq = (txc.freq * 1e3) * (1LL<<16); +- log_debug("ntp_adjtime returns frequency of %fppm", ++ log_debug("adjtimex returns frequency of %fppm", + newfreq / 1e3 / (1LL << 32)); + *oldfreq = newfreq; + } |