X-Git-Url: http://git.meshlink.io/?p=catta;a=blobdiff_plain;f=src%2Frr.c;h=eeab99a208cd1196a0310344557cdc192e536317;hp=6d9fb8ed72ee0f9eba88c8bbf80405bbeae4f04e;hb=4c0a414c5f83270ded3deb66036f77ae754e4555;hpb=b2b4639f998e3362a182953ba974520ac99de0fc 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: