summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpq/ntpq_ops.c
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2001-08-29 14:35:15 +0000
committerroberto <roberto@FreeBSD.org>2001-08-29 14:35:15 +0000
commit40b8e415eb0f835a9dd7a473ddf134ec67877fd7 (patch)
tree3cfb63f1a112ee17469b17fc1593a88d004ddda6 /contrib/ntp/ntpq/ntpq_ops.c
parenta5a8dc6136fcee95f261a31609a25669038c3861 (diff)
downloadFreeBSD-src-40b8e415eb0f835a9dd7a473ddf134ec67877fd7.zip
FreeBSD-src-40b8e415eb0f835a9dd7a473ddf134ec67877fd7.tar.gz
Virgin import of ntpd 4.1.0
Diffstat (limited to 'contrib/ntp/ntpq/ntpq_ops.c')
-rw-r--r--contrib/ntp/ntpq/ntpq_ops.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/contrib/ntp/ntpq/ntpq_ops.c b/contrib/ntp/ntpq/ntpq_ops.c
index 8827a84..c907503 100644
--- a/contrib/ntp/ntpq/ntpq_ops.c
+++ b/contrib/ntp/ntpq/ntpq_ops.c
@@ -1,15 +1,15 @@
/*
* ntpdc_ops.c - subroutines which are called to perform operations by ntpdc
*/
+
#include <stdio.h>
-#include <ctype.h>
-#include <sys/types.h>
-#include <sys/time.h>
-#include <netdb.h>
#include "ntpq.h"
#include "ntp_stdlib.h"
+#include <ctype.h>
+#include <netdb.h>
+
extern char * chosts[];
extern char currenthost[];
extern int numhosts;
@@ -940,7 +940,7 @@ printassoc(
conf = "yes";
else
conf = "no";
- if (statval & CTL_PST_REACH) {
+ if (statval & CTL_PST_REACH || 1) {
reach = "yes";
if (statval & CTL_PST_AUTHENABLE) {
if (statval & CTL_PST_AUTHENTIC)
@@ -1544,8 +1544,8 @@ dopeers(
}
(void) fprintf(fp, "%-*.*s ", maxhostlen, maxhostlen, "host");
}
- (void) fprintf(fp,
- " remote refid st t when poll reach delay offset jitter\n");
+ fprintf(fp,
+ " remote refid st t when poll reach delay offset jitter\n");
if (numhosts > 1)
for (i = 0; i <= maxhostlen; ++i)
(void) fprintf(fp, "=");
@@ -1610,6 +1610,8 @@ doopeers(
(void) fprintf(fp,
" remote local st t when poll reach delay offset disp\n");
(void) fprintf(fp,
+ " (s) (s) (ms) (ms) (ms)\n");
+ (void) fprintf(fp,
"==============================================================================\n");
for (i = 0; i < numassoc; i++) {
OpenPOWER on IntegriCloud