Line 0
Link Here
|
|
|
1 |
--- ntpd/refclock_ripencc.c.orig 2014-12-18 18:42:01.000000000 -0800 |
2 |
+++ ntpd/refclock_ripencc.c 2017-11-23 19:41:57.473988000 -0800 |
3 |
@@ -1517,7 +1517,7 @@ |
4 |
|
5 |
record_clock_stats(&peer->srcadr, logbuf); |
6 |
|
7 |
- if (!utcflags & UTCF_UTC_AVAIL) |
8 |
+ if (!(utcflags & UTCF_UTC_AVAIL)) |
9 |
return(-1); |
10 |
|
11 |
/* poll for UTC parameters once and then if UTC flag changed */ |
12 |
@@ -3442,7 +3442,7 @@ |
13 |
status1, status2; |
14 |
const char |
15 |
*text; |
16 |
- static const char const |
17 |
+ static const char |
18 |
*sc_text[] = { |
19 |
"Doing position fixes", |
20 |
"Don't have GPS time yet", |
21 |
@@ -4442,8 +4442,6 @@ |
22 |
known = TRUE; |
23 |
} |
24 |
if (known == FALSE) pbuf += sprintf(pbuf, "No known"); |
25 |
- reserved = reserved; |
26 |
- |
27 |
} |
28 |
|
29 |
/* 0x8F */ |
30 |
@@ -5059,7 +5057,7 @@ |
31 |
{ |
32 |
for (i=0; i<8; i++) |
33 |
{ |
34 |
- if (Flags&(1<<i)) pbuf += sprintf(pbuf, LeapStatusText[i]); |
35 |
+ if (Flags&(1<<i)) pbuf += sprintf(pbuf, " %s", LeapStatusText[i]); |
36 |
} |
37 |
} |
38 |
else |