From 92b5cd9d488afcc7bcad1cd0619c0df727509003 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Fri, 29 Aug 2014 19:19:19 +0200 Subject: [PATCH] on Windows this argument is not marked const --- src/address.c | 2 +- src/rr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/address.c b/src/address.c index c207fdc..7eced15 100644 --- a/src/address.c +++ b/src/address.c @@ -58,7 +58,7 @@ char *catta_address_snprint(char *s, size_t length, const CattaAddress *a) { assert(length); assert(a); - if (!(inet_ntop(catta_proto_to_af(a->proto), a->data.data, s, length))) + if (!(inet_ntop(catta_proto_to_af(a->proto), (void *)a->data.data, s, length))) return NULL; return s; diff --git a/src/rr.c b/src/rr.c index eeab99a..6d9fb8e 100644 --- a/src/rr.c +++ b/src/rr.c @@ -254,11 +254,11 @@ char *catta_record_to_string(const CattaRecord *r) { switch (r->key->type) { case CATTA_DNS_TYPE_A: - inet_ntop(AF_INET, &r->data.a.address.address, t = buf, sizeof(buf)); + inet_ntop(AF_INET, (void *)&r->data.a.address.address, t = buf, sizeof(buf)); break; case CATTA_DNS_TYPE_AAAA: - inet_ntop(AF_INET6, &r->data.aaaa.address.address, t = buf, sizeof(buf)); + inet_ntop(AF_INET6, (void *)&r->data.aaaa.address.address, t = buf, sizeof(buf)); break; case CATTA_DNS_TYPE_PTR: -- 2.39.2