From: Sven M. Hallberg Date: Fri, 29 Aug 2014 17:19:19 +0000 (+0200) Subject: on Windows this argument is not marked const X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=92b5cd9d488afcc7bcad1cd0619c0df727509003;p=catta on Windows this argument is not marked const --- 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: