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;
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: