summaryrefslogtreecommitdiff
path: root/net/openntpd/files/patch-ntpd.c
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2009-11-24 14:55:52 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2009-11-24 14:55:52 +0000
commit2bc38c4ec13badffdf05ee1ebcde244985583352 (patch)
tree16e81d60db991d1a9066d02dddd4b2475e29e13c /net/openntpd/files/patch-ntpd.c
parent- Fix build (diff)
Update to 4.6:
* DNS queries are delegated to a dedicated child process. * The -v option will log all time adjustments.
Notes
Notes: svn path=/head/; revision=244718
Diffstat (limited to 'net/openntpd/files/patch-ntpd.c')
-rw-r--r--net/openntpd/files/patch-ntpd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/openntpd/files/patch-ntpd.c b/net/openntpd/files/patch-ntpd.c
index 92cefab02d39..e47d20c1ac33 100644
--- a/net/openntpd/files/patch-ntpd.c
+++ b/net/openntpd/files/patch-ntpd.c
@@ -2,18 +2,18 @@ $FreeBSD$
Drift file in ppm for compatibility with reference ntpd.
---- ntpd.c.orig 2009-08-01 22:17:42.000000000 +0200
-+++ ntpd.c 2009-08-01 22:18:51.000000000 +0200
-@@ -449,7 +449,7 @@ readfreq(void)
+--- ntpd.c.orig 2009-11-23 20:34:47.000000000 +0100
++++ ntpd.c 2009-11-23 20:36:38.000000000 +0100
+@@ -457,7 +457,7 @@ readfreq(void)
log_warn("adjfreq failed");
else if (current == 0) {
if (fscanf(fp, "%le", &d) == 1)
- ntpd_adjfreq(d, 0);
+ ntpd_adjfreq(d / 1e6, 0);
+ else
+ log_warnx("can't read %s", DRIFTFILE);
}
- fclose(fp);
- }
-@@ -470,7 +470,7 @@ writefreq(double d)
+@@ -480,7 +480,7 @@ writefreq(double d)
return 0;
}