X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Frr.c;h=eeab99a208cd1196a0310344557cdc192e536317;hb=HEAD;hp=6d9fb8ed72ee0f9eba88c8bbf80405bbeae4f04e;hpb=ba51d86d35c7686fe64e861e14177bec0a993e42;p=catta diff --git a/src/rr.c b/src/rr.c index 6d9fb8e..eeab99a 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, (void *)&r->data.a.address.address, t = buf, sizeof(buf)); + inet_ntop(AF_INET, &r->data.a.address.address, t = buf, sizeof(buf)); break; case CATTA_DNS_TYPE_AAAA: - inet_ntop(AF_INET6, (void *)&r->data.aaaa.address.address, t = buf, sizeof(buf)); + inet_ntop(AF_INET6, &r->data.aaaa.address.address, t = buf, sizeof(buf)); break; case CATTA_DNS_TYPE_PTR: