summaryrefslogtreecommitdiff
path: root/src/spf.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
commit973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch)
tree1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/spf.c
parent66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff)
fix deprecated prototypes
Diffstat (limited to 'src/spf.c')
-rw-r--r--src/spf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spf.c b/src/spf.c
index 29da3df..18d86a3 100644
--- a/src/spf.c
+++ b/src/spf.c
@@ -73,7 +73,7 @@ int spf_query(
break;
case 0:
if (!ip4_scan(remoteip, ip4remote)) return SPF_SYNTAX;
- if (ipme_is4(ip4remote) == 1) {
+ if (ipme_is4((struct ip4_address *)ip4remote) == 1) {
if (!spf_info("MLocal=", remoteip)) return SPF_NOMEM;
if (!spf_info("R:", "+")) return SPF_NOMEM;
return SPF_ME;
@@ -81,7 +81,7 @@ int spf_query(
break;
case 1:
if (!ip6_scan(remoteip, ip6remote)) return SPF_SYNTAX;
- if (ipme_is6(ip6remote) == 1) {
+ if (ipme_is6((struct ip6_address *)ip6remote) == 1) {
if (!spf_info("MLocal=", remoteip)) return SPF_NOMEM;
if (!spf_info("R:", "+")) return SPF_NOMEM;
return SPF_ME;