summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;