diff options
Diffstat (limited to 'contrib/ntp/ntpq/ntpq_ops.c')
-rw-r--r-- | contrib/ntp/ntpq/ntpq_ops.c | 16 |
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++) { |