From f2c900976d3f4a1d862f987bbe8dd8ac3b95c0e0 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Fri, 7 May 2004 15:10:45 +0000 Subject: [PATCH] lex_open_file now accepts const char* as file name. parse_config now accepts const char* as file name. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1344 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/lex.c | 2 +- bacula/src/lib/parse_conf.c | 2 +- bacula/src/lib/parse_conf.h | 2 +- bacula/src/lib/protos.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bacula/src/lib/lex.c b/bacula/src/lib/lex.c index 09b941a08d..52e3da69df 100644 --- a/bacula/src/lib/lex.c +++ b/bacula/src/lib/lex.c @@ -109,7 +109,7 @@ LEX *lex_close_file(LEX *lf) * the next field. * */ -LEX *lex_open_file(LEX *lf, char *filename, LEX_ERROR_HANDLER *scan_error) +LEX *lex_open_file(LEX *lf, const char *filename, LEX_ERROR_HANDLER *scan_error) { LEX *nf; diff --git a/bacula/src/lib/parse_conf.c b/bacula/src/lib/parse_conf.c index 5972581af3..bba1cf46bc 100755 --- a/bacula/src/lib/parse_conf.c +++ b/bacula/src/lib/parse_conf.c @@ -683,7 +683,7 @@ enum parse_state { * */ void -parse_config(char *cf) +parse_config(const char *cf) { LEX *lc = NULL; int token, i, pass; diff --git a/bacula/src/lib/parse_conf.h b/bacula/src/lib/parse_conf.h index d7ce68c306..45f7ca38fc 100644 --- a/bacula/src/lib/parse_conf.h +++ b/bacula/src/lib/parse_conf.h @@ -97,7 +97,7 @@ union CURES { /* Configuration routines */ -void parse_config(char *cf); +void parse_config(const char *cf); void free_config_resources(void); RES **save_config_resources(void); diff --git a/bacula/src/lib/protos.h b/bacula/src/lib/protos.h index 303011f681..d11c9dbd75 100644 --- a/bacula/src/lib/protos.h +++ b/bacula/src/lib/protos.h @@ -133,7 +133,7 @@ void job_end_push(JCR *jcr, void job_end_cb(JCR *jcr)); /* lex.c */ LEX * lex_close_file (LEX *lf); -LEX * lex_open_file (LEX *lf, char *fname, LEX_ERROR_HANDLER *scan_error); +LEX * lex_open_file (LEX *lf, const char *fname, LEX_ERROR_HANDLER *scan_error); int lex_get_char (LEX *lf); void lex_unget_char (LEX *lf); const char * lex_tok_to_str (int token); -- 2.39.5