diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-12-07 16:32:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-12-07 16:32:57 +0100 |
commit | c5a41c2269fe4516eb54a54d577aed8569198f20 (patch) | |
tree | 94a35b970aac42929a6f952731a5dfd9ba2d430a /src/gns/plugin_gnsrecord_gns.c | |
parent | 7f55bd482918d3fa4aa5f389f2b4f7aa82c19a3a (diff) | |
download | gnunet-c5a41c2269fe4516eb54a54d577aed8569198f20.tar.gz gnunet-c5a41c2269fe4516eb54a54d577aed8569198f20.zip |
fix warnings
Diffstat (limited to 'src/gns/plugin_gnsrecord_gns.c')
-rw-r--r-- | src/gns/plugin_gnsrecord_gns.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
79 | return NULL; | 79 | return NULL; |
80 | } | 80 | } |
81 | /* DNS server IP/name must be UTF-8 */ | 81 | /* DNS server IP/name must be UTF-8 */ |
82 | ip = GNUNET_strdup ((char*) &data[off]); | 82 | ip = GNUNET_strdup (&((const char*) data)[off]); |
83 | GNUNET_asprintf (&nstr, "%s@%s", ns, ip); | 83 | GNUNET_asprintf (&nstr, "%s@%s", ns, ip); |
84 | GNUNET_free_non_null (ns); | 84 | GNUNET_free_non_null (ns); |
85 | GNUNET_free_non_null (ip); | 85 | GNUNET_free_non_null (ip); |