From 3afe75da145140445aba265481b37d068f095879 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Sat, 30 Nov 2019 15:20:45 +0100 Subject: [PATCH] invert ifdef guard --- src/gns/gnunet-service-gns_resolver.c | 4 ++-- src/gns/plugin_gnsrecord_gns.c | 4 ++-- 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 -- 2.25.1