]> git.meshlink.io Git - catta/blobdiff - src/rr.c
Fix some compiler warnings found by GCC 9 and Clang 10.
[catta] / src / rr.c
index 6d9fb8ed72ee0f9eba88c8bbf80405bbeae4f04e..eeab99a208cd1196a0310344557cdc192e536317 100644 (file)
--- 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: