[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: fix warnings
From: |
gnunet |
Subject: |
[gnunet] branch master updated: fix warnings |
Date: |
Sat, 07 Dec 2019 16:35:55 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new c5a41c226 fix warnings
c5a41c226 is described below
commit c5a41c2269fe4516eb54a54d577aed8569198f20
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Dec 7 16:32:57 2019 +0100
fix warnings
---
src/gns/gnunet-service-gns_resolver.c | 2 +-
src/gns/plugin_gnsrecord_gns.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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);
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnunet] branch master updated: fix warnings,
gnunet <=