summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-03-17 11:06:38 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-03-17 11:06:38 +0100
commiteac732adbd59b15f10f4db14414dd1405b488e65 (patch)
treeed7090ba412aa888129978c0bb77d0416deb206c /src
parent8d468c4c169a7519d5b172cc049b1d8cc7b1c343 (diff)
Constify spf
Diffstat (limited to 'src')
-rw-r--r--src/src/lookups/spf.c2
-rw-r--r--src/src/spf.c4
-rw-r--r--src/src/spf.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/src/lookups/spf.c b/src/src/lookups/spf.c
index 2671fc9c4..8b846ba55 100644
--- a/src/src/lookups/spf.c
+++ b/src/src/lookups/spf.c
@@ -51,7 +51,7 @@ spf_close(void *handle)
}
static int
-spf_find(void *handle, uschar *filename, uschar *keystring, int key_len,
+spf_find(void *handle, uschar *filename, const uschar *keystring, int key_len,
uschar **result, uschar **errmsg, uint *do_cache)
{
SPF_server_t *spf_server = handle;
diff --git a/src/src/spf.c b/src/src/spf.c
index 7167f5778..2a9dcb78e 100644
--- a/src/src/spf.c
+++ b/src/src/spf.c
@@ -74,9 +74,9 @@ int spf_init(uschar *spf_helo_domain, uschar *spf_remote_addr) {
context (if any), retrieves the result, sets up expansion
strings and evaluates the condition outcome. */
-int spf_process(uschar **listptr, uschar *spf_envelope_sender, int action) {
+int spf_process(const uschar **listptr, uschar *spf_envelope_sender, int action) {
int sep = 0;
- uschar *list = *listptr;
+ const uschar *list = *listptr;
uschar *spf_result_id;
uschar spf_result_id_buffer[128];
int rc = SPF_RESULT_PERMERROR;
diff --git a/src/src/spf.h b/src/src/spf.h
index 0ce5d007a..3d5f621fd 100644
--- a/src/src/spf.h
+++ b/src/src/spf.h
@@ -24,7 +24,7 @@ typedef struct spf_result_id {
/* prototypes */
int spf_init(uschar *,uschar *);
-int spf_process(uschar **, uschar *, int);
+int spf_process(const uschar **, uschar *, int);
#define SPF_PROCESS_NORMAL 0
#define SPF_PROCESS_GUESS 1