Mon Dec 14 00:49:46 2009 UTC ()
constify


(christos)
diff -r1.1.1.1 -r1.2 src/external/bsd/ntp/dist/ntpq/ntpq-subs.c

cvs diff -r1.1.1.1 -r1.2 src/external/bsd/ntp/dist/ntpq/ntpq-subs.c (expand / switch to unified diff)

--- src/external/bsd/ntp/dist/ntpq/ntpq-subs.c 2009/12/13 16:56:29 1.1.1.1
+++ src/external/bsd/ntp/dist/ntpq/ntpq-subs.c 2009/12/14 00:49:45 1.2
@@ -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
16extern char * chosts[]; 16extern const char * chosts[];
17extern char currenthost[]; 17extern char currenthost[];
18extern int numhosts; 18extern int numhosts;
19int maxhostlen; 19int maxhostlen;
20 20
21/* 21/*
22 * Declarations for command handlers in here 22 * Declarations for command handlers in here
23 */ 23 */
24static int checkassocid (u_int32); 24static int checkassocid (u_int32);
25static struct varlist *findlistvar (struct varlist *, char *); 25static struct varlist *findlistvar (struct varlist *, char *);
26static void doaddvlist (struct varlist *, char *); 26static void doaddvlist (struct varlist *, char *);
27static void dormvlist (struct varlist *, char *); 27static void dormvlist (struct varlist *, char *);
28static void doclearvlist (struct varlist *); 28static void doclearvlist (struct varlist *);
29static void makequerydata (struct varlist *, int *, char *); 29static void makequerydata (struct varlist *, int *, char *);