summaryrefslogtreecommitdiff
path: root/net/ntp-devel/files
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2018-02-02 07:00:18 +0000
committerCy Schubert <cy@FreeBSD.org>2018-02-02 07:00:18 +0000
commitf91d32caa35a28f770cf79a05eb819fb0a5d6f46 (patch)
tree34fb5d3eea5c59d66ac6bd133015be048f4e0f88 /net/ntp-devel/files
parentUpdate to 1.9.0. (diff)
Fix RIPENCC TRIMBLE driver compile error.
PR: 223819
Notes
Notes: svn path=/head/; revision=460673
Diffstat (limited to 'net/ntp-devel/files')
-rw-r--r--net/ntp-devel/files/patch-ntpd__refclock__ripencc.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/net/ntp-devel/files/patch-ntpd__refclock__ripencc.c b/net/ntp-devel/files/patch-ntpd__refclock__ripencc.c
new file mode 100644
index 000000000000..d6f134dfd89f
--- /dev/null
+++ b/net/ntp-devel/files/patch-ntpd__refclock__ripencc.c
@@ -0,0 +1,38 @@
+--- ntpd/refclock_ripencc.c.orig 2014-12-18 18:42:01.000000000 -0800
++++ ntpd/refclock_ripencc.c 2017-11-23 19:41:57.473988000 -0800
+@@ -1517,7 +1517,7 @@
+
+ record_clock_stats(&peer->srcadr, logbuf);
+
+- if (!utcflags & UTCF_UTC_AVAIL)
++ if (!(utcflags & UTCF_UTC_AVAIL))
+ return(-1);
+
+ /* poll for UTC parameters once and then if UTC flag changed */
+@@ -3442,7 +3442,7 @@
+ status1, status2;
+ const char
+ *text;
+- static const char const
++ static const char
+ *sc_text[] = {
+ "Doing position fixes",
+ "Don't have GPS time yet",
+@@ -4442,8 +4442,6 @@
+ known = TRUE;
+ }
+ if (known == FALSE) pbuf += sprintf(pbuf, "No known");
+- reserved = reserved;
+-
+ }
+
+ /* 0x8F */
+@@ -5059,7 +5057,7 @@
+ {
+ for (i=0; i<8; i++)
+ {
+- if (Flags&(1<<i)) pbuf += sprintf(pbuf, LeapStatusText[i]);
++ if (Flags&(1<<i)) pbuf += sprintf(pbuf, " %s", LeapStatusText[i]);
+ }
+ }
+ else