aboutsummaryrefslogtreecommitdiff
path: root/ntpd/ntp_scanner.h
diff options
context:
space:
mode:
Diffstat (limited to 'ntpd/ntp_scanner.h')
-rw-r--r--ntpd/ntp_scanner.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/ntpd/ntp_scanner.h b/ntpd/ntp_scanner.h
index 907d7c0ff5c2..67976371d8ff 100644
--- a/ntpd/ntp_scanner.h
+++ b/ntpd/ntp_scanner.h
@@ -11,6 +11,8 @@
#ifndef NTP_SCANNER_H
#define NTP_SCANNER_H
+#include "ntp_config.h"
+
/*
* ntp.conf syntax is slightly irregular in that some tokens such as
* hostnames do not require quoting even if they might otherwise be
@@ -103,11 +105,9 @@ struct FILE_INFO {
/* SCANNER GLOBAL VARIABLES
* ------------------------
*/
-extern struct config_tree cfgt; /* Parser output stored here */
+extern config_tree cfgt; /* Parser output stored here */
extern int curr_include_level; /* The current include level */
-extern struct FILE_INFO *ip_file; /* Pointer to the configuration file stream */
-
/* VARIOUS EXTERNAL DECLARATIONS
* -----------------------------
*/
@@ -120,13 +120,11 @@ extern struct FILE_INFO *fp[];
*/
extern const char *keyword(int token);
extern char *quote_if_needed(char *str);
-int yylex(void);
+int yylex(struct FILE_INFO *);
struct FILE_INFO *F_OPEN(const char *path, const char *mode);
int FGETC(struct FILE_INFO *stream);
int UNGETC(int ch, struct FILE_INFO *stream);
int FCLOSE(struct FILE_INFO *stream);
-void push_back_char(int ch);
-
#endif /* NTP_SCANNER_H */