summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2020-09-14 11:15:26 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2020-09-14 11:15:26 +0000
commit36304a52f6c91d404c9d1381a5950edb31fc78a9 (patch)
tree17a9fe01788249a46741c7e5655ee8cfc3a7a739
parent987b54e20023278b7e2ce5eb61897220c92fd2b8 (diff)
All buffers are in rw-memory, but lookup_record has it defined as
const char *. Remove the const so things compile a little cleaner. Pointer out by Mark Patruck <mark <at> wrapped <dot> cx>. Thanks
-rw-r--r--usr.sbin/smtpd/spfwalk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/spfwalk.c b/usr.sbin/smtpd/spfwalk.c
index 2f22338475d..b47410cf3d0 100644
--- a/usr.sbin/smtpd/spfwalk.c
+++ b/usr.sbin/smtpd/spfwalk.c
@@ -53,7 +53,7 @@ static void dispatch_txt(struct dns_rr *, struct target *);
static void dispatch_mx(struct dns_rr *, struct target *);
static void dispatch_a(struct dns_rr *, struct target *);
static void dispatch_aaaa(struct dns_rr *, struct target *);
-static void lookup_record(int, const char *, struct target *);
+static void lookup_record(int, char *, struct target *);
static void dispatch_record(struct asr_result *, void *);
static ssize_t parse_txt(const char *, size_t, char *, size_t);
static int parse_target(char *, struct target *);
@@ -113,7 +113,7 @@ spfwalk(int argc, struct parameter *argv)
}
void
-lookup_record(int type, const char *record, struct target *tgt)
+lookup_record(int type, char *record, struct target *tgt)
{
struct asr_query *as;
struct target *ntgt;