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
(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.
*/
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
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