From: Heiko Schlittermann (HS12-RIPE) Date: Fri, 9 Dec 2016 22:56:09 +0000 (+0100) Subject: Constify config_filename X-Git-Tag: exim-4_91_RC1~148^2~42^2~11 X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/007bc90f5bb03143434c0528e551c1b2f81d3636?ds=sidebyside Constify config_filename --- diff --git a/src/src/globals.c b/src/src/globals.c index b862015a2..23bd6900c 100644 --- a/src/src/globals.c +++ b/src/src/globals.c @@ -508,7 +508,7 @@ int clmacro_count = 0; uschar *clmacros[MAX_CLMACROS]; BOOL config_changed = FALSE; FILE *config_file = NULL; -uschar *config_filename = NULL; +const uschar *config_filename = NULL; int config_lineno = 0; #ifdef CONFIGURE_GROUP gid_t config_gid = CONFIGURE_GROUP; diff --git a/src/src/globals.h b/src/src/globals.h index b3747a84a..6e6a5c224 100644 --- a/src/src/globals.h +++ b/src/src/globals.h @@ -281,7 +281,7 @@ extern uschar *clmacros[]; /* Copy of them, for re-exec */ extern int connection_max_messages;/* Max down one SMTP connection */ extern BOOL config_changed; /* True if -C used */ extern FILE *config_file; /* Configuration file */ -extern uschar *config_filename; /* Configuration file name */ +extern const uschar *config_filename; /* Configuration file name */ extern gid_t config_gid; /* Additional group owner */ extern int config_lineno; /* Line number */ extern uschar *config_main_filelist; /* List of possible config files */ diff --git a/src/src/readconf.c b/src/src/readconf.c index 27a834b3f..9c3f1a4bc 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -27,7 +27,7 @@ static void readconf_options_auths(void); typedef struct config_file_item { struct config_file_item *next; - uschar *filename; + const uschar *filename; FILE *file; int lineno; } config_file_item;