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