summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-12-09 23:56:09 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2016-12-29 19:37:05 +0000
commit18d6b513cfa9703aa991718d1fb659867caad739 (patch)
tree1c438d55fd1204db221303fc878423182db97839
parente21a4d0042e48109cef06e48b8a73dd79d7a4330 (diff)
Constify config_filename
-rw-r--r--src/src/globals.c2
-rw-r--r--src/src/globals.h2
-rw-r--r--src/src/readconf.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/src/globals.c b/src/src/globals.c
index f83d85096..55d9e98ae 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 b2a3c7370..858496b6b 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;