| @@ -1,29 +1,29 @@ | | | @@ -1,29 +1,29 @@ |
1 | /* $NetBSD: ntpq-subs.c,v 1.1.1.1 2009/12/13 16:56:29 kardel Exp $ */ | | 1 | /* $NetBSD: ntpq-subs.c,v 1.2 2009/12/14 00:49:45 christos Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * ntpq_ops.c - subroutines which are called to perform operations by ntpq | | 4 | * ntpq_ops.c - subroutines which are called to perform operations by ntpq |
5 | */ | | 5 | */ |
6 | | | 6 | |
7 | #include <stdio.h> | | 7 | #include <stdio.h> |
8 | #include <ctype.h> | | 8 | #include <ctype.h> |
9 | #include <sys/types.h> | | 9 | #include <sys/types.h> |
10 | #include <sys/time.h> | | 10 | #include <sys/time.h> |
11 | | | 11 | |
12 | #include "ntp_stdlib.h" | | 12 | #include "ntp_stdlib.h" |
13 | #include "ntpq.h" | | 13 | #include "ntpq.h" |
14 | #include "ntpq-opts.h" | | 14 | #include "ntpq-opts.h" |
15 | | | 15 | |
16 | extern char * chosts[]; | | 16 | extern const char * chosts[]; |
17 | extern char currenthost[]; | | 17 | extern char currenthost[]; |
18 | extern int numhosts; | | 18 | extern int numhosts; |
19 | int maxhostlen; | | 19 | int maxhostlen; |
20 | | | 20 | |
21 | /* | | 21 | /* |
22 | * Declarations for command handlers in here | | 22 | * Declarations for command handlers in here |
23 | */ | | 23 | */ |
24 | static int checkassocid (u_int32); | | 24 | static int checkassocid (u_int32); |
25 | static struct varlist *findlistvar (struct varlist *, char *); | | 25 | static struct varlist *findlistvar (struct varlist *, char *); |
26 | static void doaddvlist (struct varlist *, char *); | | 26 | static void doaddvlist (struct varlist *, char *); |
27 | static void dormvlist (struct varlist *, char *); | | 27 | static void dormvlist (struct varlist *, char *); |
28 | static void doclearvlist (struct varlist *); | | 28 | static void doclearvlist (struct varlist *); |
29 | static void makequerydata (struct varlist *, int *, char *); | | 29 | static void makequerydata (struct varlist *, int *, char *); |