]> git.meshlink.io Git - catta/commitdiff
on Windows this argument is not marked const
authorSven M. Hallberg <pesco@khjk.org>
Fri, 29 Aug 2014 17:19:19 +0000 (19:19 +0200)
committerSven M. Hallberg <pesco@khjk.org>
Fri, 29 Aug 2014 17:21:46 +0000 (19:21 +0200)
src/address.c
src/rr.c

index c207fdc28445d2542d66af3546b2019524060c2d..7eced15ed523c64fbcd27c639509b5ce62016498 100644 (file)
@@ -58,7 +58,7 @@ char *catta_address_snprint(char *s, size_t length, const CattaAddress *a) {
     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;
index eeab99a208cd1196a0310344557cdc192e536317..6d9fb8ed72ee0f9eba88c8bbf80405bbeae4f04e 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, &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: