[exim-cvs] Constify

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Constify
Gitweb: https://git.exim.org/exim.git/commitdiff/051018257599e8a91f4ba2c2c99b72697eb0a4a4
Commit:     051018257599e8a91f4ba2c2c99b72697eb0a4a4
Parent:     d63a3cc6844230ba1489ba6c5bbf0812290b202d
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Aug 10 20:19:39 2020 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Aug 10 20:47:11 2020 +0100


    Constify
---
 src/src/globals.c | 4 ++--
 src/src/globals.h | 4 ++--
 src/src/receive.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/src/src/globals.c b/src/src/globals.c
index a5df06d..aa94a27 100644
--- a/src/src/globals.c
+++ b/src/src/globals.c
@@ -1529,8 +1529,8 @@ uschar *srs_recipient          = NULL;
 int     string_datestamp_offset= -1;
 int     string_datestamp_length= 0;
 int     string_datestamp_type  = -1;
-uschar *submission_domain      = NULL;
-uschar *submission_name        = NULL;
+const uschar *submission_domain = NULL;
+const uschar *submission_name  = NULL;
 int     syslog_facility        = LOG_MAIL;
 uschar *syslog_processname     = US"exim";
 uschar *system_filter          = NULL;
diff --git a/src/src/globals.h b/src/src/globals.h
index ea32695..962da13 100644
--- a/src/src/globals.h
+++ b/src/src/globals.h
@@ -1015,8 +1015,8 @@ extern int     string_datestamp_length;/* After insertion by string_format */
 extern int     string_datestamp_type;  /* After insertion by string_format */
 extern BOOL    strip_excess_angle_brackets; /* Surrounding route-addrs */
 extern BOOL    strip_trailing_dot;     /* Remove dots at ends of domains */
-extern uschar *submission_domain;      /* Domain for submission mode */
-extern uschar *submission_name;        /* User name set from ACL */
+extern const uschar *submission_domain;/* Domain for submission mode */
+extern const uschar *submission_name;  /* User name set from ACL */
 extern BOOL    syslog_duplication;     /* FALSE => no duplicate logging */
 extern int     syslog_facility;        /* As defined by Syslog.h */
 extern BOOL    syslog_pid;             /* TRUE if PID on syslogs */
diff --git a/src/src/receive.c b/src/src/receive.c
index 76b4d37..707fe07 100644
--- a/src/src/receive.c
+++ b/src/src/receive.c
@@ -2806,7 +2806,7 @@ From:) but we still want to ensure a valid Sender: if it is required. */
 if (  !from_header
    && ((!sender_host_address && !f.suppress_local_fixups) || f.submission_mode))
   {
-  uschar *oname = US"";
+  const uschar * oname = US"";


/* Use the originator_name if this is a locally submitted message and the
caller is not trusted. For trusted callers, use it only if -F was used to