From eac732adbd59b15f10f4db14414dd1405b488e65 Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Thu, 17 Mar 2016 11:06:38 +0100 Subject: [PATCH] Constify spf --- src/src/lookups/spf.c | 2 +- src/src/spf.c | 4 ++-- src/src/spf.h | 2 +- 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 -- 2.25.1