diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
commit | 4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (patch) | |
tree | 15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/xntpd/ntpdate | |
parent | 30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff) | |
download | FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/xntpd/ntpdate')
-rw-r--r-- | usr.sbin/xntpd/ntpdate/ntpdate.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/usr.sbin/xntpd/ntpdate/ntpdate.c b/usr.sbin/xntpd/ntpdate/ntpdate.c index 20fa604..bb5ede5 100644 --- a/usr.sbin/xntpd/ntpdate/ntpdate.c +++ b/usr.sbin/xntpd/ntpdate/ntpdate.c @@ -247,7 +247,7 @@ main(argc, argv) default: break; } - + sys_maxservers = argc - ntp_optind; if (errflg || sys_maxservers == 0) { (void) fprintf(stderr, @@ -532,7 +532,7 @@ receive(rbufp) PKT_MODE(rpkt->li_vn_mode), rpkt->stratum); return; } - + /* * So far, so good. See if this is from a server we know. */ @@ -553,7 +553,7 @@ receive(rbufp) printf("receive: pkt.org and peer.xmt differ\n"); return; } - + /* * Check out the authenticity if we're doing that. */ @@ -564,7 +564,7 @@ receive(rbufp) if (debug > 3) printf("receive: rpkt keyid=%ld sys_authkey=%ld decrypt=%ld\n", - (long int)ntohl(rpkt->keyid), (long int)sys_authkey, + (long int)ntohl(rpkt->keyid), (long int)sys_authkey, (long int)authdecrypt(sys_authkey, (U_LONG *)rpkt, LEN_PKT_NOMAC)); @@ -578,7 +578,7 @@ receive(rbufp) server->trust <<= 1; if (!is_authentic) server->trust |= 1; - + /* * Looks good. Record info from the packet. */ @@ -685,7 +685,7 @@ clock_filter(server) */ for (i = 0; i < sys_samples; i++) ord[i] = i; - + for (i = 0; i < (sys_samples-1); i++) { for (j = i+1; j < sys_samples; j++) { if (server->filter_delay[ord[j]] == 0) @@ -866,7 +866,7 @@ clock_select() server_list[i] = server_list[j]; server_list[j] = server; } - + /* * Calculate the fixed part of the dispersion limit */ @@ -910,7 +910,7 @@ clock_select() if (n > server_list[j]->precision) n = server_list[j]->precision; } - + /* * i is the index of the server with the worst * dispersion. If his dispersion is less than @@ -965,7 +965,7 @@ clock_adjust() "no server suitable for synchronization found"); return(1); } - + dostep = 1; if (!always_step) { absoffset = server->soffset; @@ -1237,7 +1237,7 @@ getrecvbufs() if (full_recvbufs == 0) { return (struct recvbuf *)0; /* nothing has arrived */ } - + /* * Get the fulllist chain and mark it empty */ @@ -1418,7 +1418,7 @@ static int l_step_systime(ts) l_fp *ts; { -#ifdef SLEWALWAYS +#ifdef SLEWALWAYS #ifdef STEP_SLEW l_fp ftmp; int isneg; @@ -1439,7 +1439,7 @@ l_step_systime(ts) n = step_systime_real(ts); if (!n) return n; - if (isneg) + if (isneg) ts->l_ui = ~0; else ts->l_ui = ~0; @@ -1512,7 +1512,7 @@ printserver(pp, fp) pp->leap & 0x2 ? '1' : '0', pp->leap & 0x1 ? '1' : '0', pp->trust); - + if (pp->stratum == 1) { junk[4] = 0; memmove(junk, (char *)&pp->refid, 4); @@ -1524,7 +1524,7 @@ printserver(pp, fp) "refid [%s], delay %s, dispersion %s\n", str, fptoa(pp->delay, 5), ufptoa(pp->dispersion, 5)); - + (void) fprintf(fp, "transmitted %d, in filter %d\n", pp->xmtcnt, pp->filter_nextpt); @@ -1534,7 +1534,7 @@ printserver(pp, fp) prettydate(&pp->org)); (void) fprintf(fp, "transmit timestamp: %s\n", prettydate(&pp->xmt)); - + (void) fprintf(fp, "filter delay: "); for (i = 0; i < NTP_SHIFT; i++) { (void) fprintf(fp, " %-8.8s", fptoa(pp->filter_delay[i], 5)); |