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/ntpq/ntpq_ops.c | |
parent | 30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (diff) | |
download | FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.zip FreeBSD-src-4f960dd75f181e9fa2edc44324f15f0ab5c64b37.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'usr.sbin/xntpd/ntpq/ntpq_ops.c')
-rw-r--r-- | usr.sbin/xntpd/ntpq/ntpq_ops.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/xntpd/ntpq/ntpq_ops.c b/usr.sbin/xntpd/ntpq/ntpq_ops.c index 8bab73d..8e59a71 100644 --- a/usr.sbin/xntpd/ntpq/ntpq_ops.c +++ b/usr.sbin/xntpd/ntpq/ntpq_ops.c @@ -370,7 +370,7 @@ makequerydata(vlist, datalen, data) totallen = namelen + valuelen + (valuelen != 0) + (cp != data); if (cp + totallen > cpend) break; - + if (cp != data) *cp++ = ','; memmove(cp, vl->name, namelen); @@ -833,15 +833,15 @@ dogetassoc(fp) res = doquery(CTL_OP_READSTAT, 0, 0, 0, (char *)0, &rstatus, &dsize, (char **)&datap); - + if (res != 0) return 0; - + if (dsize == 0) { (void) fprintf(fp, "No association ID's returned\n"); return 0; } - + if (dsize & 0x3) { (void) fprintf(stderr, "***Server returned %d octets, should be multiple of 4\n", @@ -964,7 +964,7 @@ printassoc(showall, fp) condition = "sys.peer"; break; } - + } else { reach = "no"; auth = condition = ""; @@ -1164,7 +1164,7 @@ when(ts, rec, reftime) lasttime = reftime; else return "-"; - + diff = (long)(ts->l_ui - lasttime->l_ui); if (diff <= 0) { /* @@ -1237,7 +1237,7 @@ struct varlist peervarlist[] = { #define HAVE_REFID 1 #define HAVE_STRATUM 2 #define HAVE_HPOLL 3 -#define HAVE_PPOLL 4 +#define HAVE_PPOLL 4 #define HAVE_REACH 5 #define HAVE_DELAY 6 #define HAVE_OFFSET 7 @@ -1286,7 +1286,7 @@ doprintpeers(pvl, associd, rstatus, datalen, data, fp) memset((char *)havevar, 0, sizeof(havevar)); gettstamp(&ts); - + while (nextvar(&datalen, &data, &name, &value)) { u_long dummy; i = findvar(name, peer_var); @@ -1405,7 +1405,7 @@ doprintpeers(pvl, associd, rstatus, datalen, data, fp) pvl[i].name, associd); return 0; } - + /* * Got everything, format the line @@ -1439,7 +1439,7 @@ doprintpeers(pvl, associd, rstatus, datalen, data, fp) #undef HAVE_REC #undef HAVE_SRCPORT #undef HAVE_REFTIME -#undef MAXHAVE +#undef MAXHAVE /* @@ -1478,7 +1478,7 @@ dogetpeers(pvl, associd, fp) return 0; } - + return doprintpeers(pvl, associd, (int)rstatus, dsize, datap, fp); } |