From: Schanzenbach, Martin Date: Sat, 30 Nov 2019 14:20:45 +0000 (+0100) Subject: invert ifdef guard X-Git-Tag: v0.12.0~62 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3afe75da145140445aba265481b37d068f095879;p=oweals%2Fgnunet.git invert ifdef guard --- 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