summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-11-30 15:20:45 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-11-30 15:20:45 +0100
commit3afe75da145140445aba265481b37d068f095879 (patch)
treeb8a0d6f14ff2eb9c1037c1940a59d987ed392b49
parent61efbfb56dde7db7ede7478817d5dbb0ae1f95c1 (diff)
invert ifdef guard
-rw-r--r--src/gns/gnunet-service-gns_resolver.c4
-rw-r--r--src/gns/plugin_gnsrecord_gns.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c
index bb319633a..9792aff58 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -1710,7 +1710,7 @@ recursive_gns2dns_resolution (struct GNS_ResolverHandle *rh,
n = GNUNET_DNSPARSER_parse_name (rd[i].data,
rd[i].data_size,
&off);
-#ifndef LSD001
+#ifdef LSD001
ip = GNUNET_strdup (&rd[i].data[off]);
off += strlen (ip) + 1;
#else
@@ -1837,7 +1837,7 @@ recursive_gns2dns_resolution (struct GNS_ResolverHandle *rh,
(0 != rh->name_resolution_pos) ? "." : "",
ns);
GNUNET_free (ns);
-#ifndef LSD001
+#ifdef LSD001
/* the GNS name is UTF-8 and may include multibyte chars.
* We have to convert the combined name to a DNS-compatible IDNA.
*/
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c
index 52c35ce10..38c3582c1 100644
--- a/src/gns/plugin_gnsrecord_gns.c
+++ b/src/gns/plugin_gnsrecord_gns.c
@@ -78,7 +78,7 @@ gns_value_to_string (void *cls,
GNUNET_free_non_null (ns);
return NULL;
}
-#ifndef LSD001 //DNS server IP/name must be UTF-8
+#ifdef LSD001 //DNS server IP/name must be UTF-8
ip = GNUNET_strdup((char*) &data[off]);
#else
// Must be IP or DNS name
@@ -226,7 +226,7 @@ gns_string_to_value (void *cls,
GNUNET_free (cpy);
return GNUNET_SYSERR;
}
-#ifndef LSD001 //The DNS server location/name is in UTF-8
+#ifdef LSD001 //The DNS server location/name is in UTF-8
GNUNET_memcpy (&nsbuf[off], at, strlen (at) + 1);
off += strlen (at) + 1;
#else