From: Christian Grothoff Date: Sat, 7 Dec 2019 15:32:57 +0000 (+0100) Subject: fix warnings X-Git-Tag: v0.12.0~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c5a41c2269fe4516eb54a54d577aed8569198f20;p=oweals%2Fgnunet.git fix warnings --- diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index dac0ab16a..97a51cd7e 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c @@ -1747,7 +1747,7 @@ recursive_gns2dns_resolution (struct GNS_ResolverHandle *rh, n = GNUNET_DNSPARSER_parse_name (rd[i].data, rd[i].data_size, &off); - ip = GNUNET_strdup (&rd[i].data[off]); + ip = GNUNET_strdup (&((const char *) rd[i].data)[off]); off += strlen (ip) + 1; if ((NULL == n) || diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c index 871fc9324..370bf1da4 100644 --- a/src/gns/plugin_gnsrecord_gns.c +++ b/src/gns/plugin_gnsrecord_gns.c @@ -79,7 +79,7 @@ gns_value_to_string (void *cls, return NULL; } /* DNS server IP/name must be UTF-8 */ - ip = GNUNET_strdup ((char*) &data[off]); + ip = GNUNET_strdup (&((const char*) data)[off]); GNUNET_asprintf (&nstr, "%s@%s", ns, ip); GNUNET_free_non_null (ns); GNUNET_free_non_null (ip);