whitespace fixes. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -1854,7 +1854,7 @@ recv_and_process_client_pkt(void /*int fd*/)
|
||||
msg.m_status = G.stratum < MAXSTRAT ? G.ntp_status : LI_ALARM;
|
||||
msg.m_status |= (query_status & VERSION_MASK);
|
||||
msg.m_status |= ((query_status & MODE_MASK) == MODE_CLIENT) ?
|
||||
MODE_SERVER : MODE_SYM_PAS;
|
||||
MODE_SERVER : MODE_SYM_PAS;
|
||||
msg.m_stratum = G.stratum;
|
||||
msg.m_ppoll = G.poll_exp;
|
||||
msg.m_precision_exp = G_precision_exp;
|
||||
@ -2328,14 +2328,13 @@ set_freq(double freq) /* frequency update */
|
||||
if (pps_enable) {
|
||||
if (!(pll_status & STA_PPSTIME))
|
||||
report_event(EVNT_KERN,
|
||||
NULL, "PPS enabled");
|
||||
NULL, "PPS enabled");
|
||||
ntv.status |= STA_PPSTIME | STA_PPSFREQ;
|
||||
} else {
|
||||
if (pll_status & STA_PPSTIME)
|
||||
report_event(EVNT_KERN,
|
||||
NULL, "PPS disabled");
|
||||
ntv.status &= ~(STA_PPSTIME |
|
||||
STA_PPSFREQ);
|
||||
NULL, "PPS disabled");
|
||||
ntv.status &= ~(STA_PPSTIME | STA_PPSFREQ);
|
||||
}
|
||||
if (sys_leap == LEAP_ADDSECOND)
|
||||
ntv.status |= STA_INS;
|
||||
@ -2351,7 +2350,7 @@ set_freq(double freq) /* frequency update */
|
||||
if (ntp_adjtime(&ntv) == TIME_ERROR) {
|
||||
if (!(ntv.status & STA_PPSSIGNAL))
|
||||
report_event(EVNT_KERN, NULL,
|
||||
"PPS no signal");
|
||||
"PPS no signal");
|
||||
}
|
||||
pll_status = ntv.status;
|
||||
#ifdef STA_NANO
|
||||
|
Reference in New Issue
Block a user