From 18d6b513cfa9703aa991718d1fb659867caad739 Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Fri, 9 Dec 2016 23:56:09 +0100 Subject: Constify config_filename --- src/src/globals.c | 2 +- src/src/globals.h | 2 +- src/src/readconf.c | 2 +- 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; -- cgit v1.2.3