summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/parse.y
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/parse.y
parenteec4bab554d8ea2107745babed8eea811f6b5744 (diff)
const'ify conffile
From: Joerg Sonnenberger <joerg@britannica.bec.de>
Diffstat (limited to 'usr.sbin/ntpd/parse.y')
-rw-r--r--usr.sbin/ntpd/parse.y6
1 files changed, 3 insertions, 3 deletions
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;