summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-11-10 11:27:55 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-11-10 11:27:55 +0000
commitedda7ecb7d4e792dea3d7994cea3ec55344d9321 (patch)
tree994886e0fdd20596c49cd3ab6dd3b9b833feb536 /usr.sbin/ntpd
parenteec4bab554d8ea2107745babed8eea811f6b5744 (diff)
const'ify conffile
From: Joerg Sonnenberger <joerg@britannica.bec.de>
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/ntpd.c4
-rw-r--r--usr.sbin/ntpd/ntpd.h4
-rw-r--r--usr.sbin/ntpd/parse.y6
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c
index 99f035cf3a1..6b6b0ca51da 100644
--- a/usr.sbin/ntpd/ntpd.c
+++ b/usr.sbin/ntpd/ntpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.c,v 1.23 2004/11/04 23:04:22 henning Exp $ */
+/* $OpenBSD: ntpd.c,v 1.24 2004/11/10 11:27:54 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -81,7 +81,7 @@ main(int argc, char *argv[])
struct ntpd_conf conf;
struct pollfd pfd[POLL_MAX];
pid_t chld_pid = 0, pid;
- char *conffile;
+ const char *conffile;
int ch, nfds, timeout = INFTIM;
int pipe_chld[2];
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index aadfd72be05..9d5b367aff6 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.41 2004/10/22 21:17:37 henning Exp $ */
+/* $OpenBSD: ntpd.h,v 1.42 2004/11/10 11:27:54 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -210,7 +210,7 @@ void ntp_settime(double);
void ntp_host_dns(char *, u_int32_t);
/* parse.y */
-int parse_config(char *, struct ntpd_conf *);
+int parse_config(const char *, struct ntpd_conf *);
/* config.c */
int host(const char *, struct ntp_addr **);
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y
index 7d4288a2f77..0bc05c6eb5e 100644
--- a/usr.sbin/ntpd/parse.y
+++ b/usr.sbin/ntpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.22 2004/11/05 14:28:29 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.23 2004/11/10 11:27:54 henning Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -39,7 +39,7 @@ static struct ntpd_conf *conf;
static FILE *fin = NULL;
static int lineno = 1;
static int errors = 0;
-char *infile;
+const char *infile;
int yyerror(const char *, ...);
int yyparse(void);
@@ -399,7 +399,7 @@ yylex(void)
}
int
-parse_config(char *filename, struct ntpd_conf *xconf)
+parse_config(const char *filename, struct ntpd_conf *xconf)
{
conf = xconf;
lineno = 1;