summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-04-01 19:00:55 +0200
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-04-01 19:00:55 +0200
commit736848857a8ffbd5a2358d8afcf053fabd626376 (patch)
tree315eed7bef00893078135195b12068ba1f395229
parent68253e8b94c71fcaa6f66a01c7d6b9c1e4ffdda2 (diff)
Constify use of string_nextinlist()
-rw-r--r--src/src/demime.c4
-rw-r--r--src/src/functions.h2
-rw-r--r--src/src/srs.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/src/demime.c b/src/src/demime.c
index 887678db3..622c1c8e3 100644
--- a/src/src/demime.c
+++ b/src/src/demime.c
@@ -15,9 +15,9 @@
uschar demime_reason_buffer[1024];
struct file_extension *file_extensions = NULL;
-int demime(uschar **listptr) {
+int demime(const uschar **listptr) {
int sep = 0;
- uschar *list = *listptr;
+ const uschar *list = *listptr;
uschar *option;
uschar option_buffer[64];
unsigned long mbox_size;
diff --git a/src/src/functions.h b/src/src/functions.h
index 71c276bc7..cce26b536 100644
--- a/src/src/functions.h
+++ b/src/src/functions.h
@@ -142,7 +142,7 @@ extern void deliver_succeeded(address_item *);
extern uschar *deliver_get_sender_address (uschar *id);
#ifdef WITH_OLD_DEMIME
-extern int demime(uschar **);
+extern int demime(const uschar **);
#endif
extern BOOL directory_make(const uschar *, const uschar *, int, BOOL);
#ifndef DISABLE_DKIM
diff --git a/src/src/srs.c b/src/src/srs.c
index 0115c0b51..4fac22604 100644
--- a/src/src/srs.c
+++ b/src/src/srs.c
@@ -25,7 +25,7 @@ uschar *srs_db_reverse = NULL;
int eximsrs_init()
{
- uschar *list = srs_config;
+ const uschar *list = srs_config;
uschar secret_buf[SRS_MAX_SECRET_LENGTH];
uschar *secret = NULL;
uschar sbuf[4];