diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-12-01 12:32:14 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-12-01 12:32:14 +0100 |
commit | 520dce09be20c1961f0c419e46a773f3247683cc (patch) | |
tree | a33483fd24fbe2651d2942a9edc51b53e673632a /src/gns | |
parent | bab0de2b00129e13bd17ab5c3480eda894159b31 (diff) | |
download | gnunet-520dce09be20c1961f0c419e46a773f3247683cc.tar.gz gnunet-520dce09be20c1961f0c419e46a773f3247683cc.zip |
ifdef guard changes for LSD001/0.12
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-gns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index 0107a313a..600a9c9a5 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c | |||
@@ -229,7 +229,6 @@ run (void *cls, | |||
229 | (void) cls; | 229 | (void) cls; |
230 | (void) args; | 230 | (void) args; |
231 | (void) cfgfile; | 231 | (void) cfgfile; |
232 | Idna_rc rc; | ||
233 | 232 | ||
234 | cfg = c; | 233 | cfg = c; |
235 | to_task = NULL; | 234 | to_task = NULL; |
@@ -239,12 +238,15 @@ run (void *cls, | |||
239 | if (NULL != (colon = strchr (lookup_name, ':'))) | 238 | if (NULL != (colon = strchr (lookup_name, ':'))) |
240 | *colon = '\0'; | 239 | *colon = '\0'; |
241 | } | 240 | } |
241 | #ifdef LSD001 | ||
242 | Idna_rc rc; | ||
242 | /** | 243 | /** |
243 | * If DNS compatibility is requested, we first verify that the | 244 | * If DNS compatibility is requested, we first verify that the |
244 | * lookup_name is in a DNS format. If yes, we convert it to UTF-8. | 245 | * lookup_name is in a DNS format. If yes, we convert it to UTF-8. |
245 | */ | 246 | */ |
246 | if (GNUNET_YES == dns_compat) | 247 | if (GNUNET_YES == dns_compat) |
247 | { | 248 | { |
249 | #endif | ||
248 | if (GNUNET_OK != GNUNET_DNSPARSER_check_name (lookup_name)) | 250 | if (GNUNET_OK != GNUNET_DNSPARSER_check_name (lookup_name)) |
249 | { | 251 | { |
250 | fprintf (stderr, | 252 | fprintf (stderr, |
@@ -253,6 +255,7 @@ run (void *cls, | |||
253 | global_ret = 3; | 255 | global_ret = 3; |
254 | return; | 256 | return; |
255 | } | 257 | } |
258 | #ifdef LSD001 | ||
256 | if (IDNA_SUCCESS != | 259 | if (IDNA_SUCCESS != |
257 | (rc = idna_to_unicode_8z8z (lookup_name, &idna_name, | 260 | (rc = idna_to_unicode_8z8z (lookup_name, &idna_name, |
258 | IDNA_ALLOW_UNASSIGNED))) | 261 | IDNA_ALLOW_UNASSIGNED))) |
@@ -266,6 +269,7 @@ run (void *cls, | |||
266 | } | 269 | } |
267 | lookup_name = idna_name; | 270 | lookup_name = idna_name; |
268 | } | 271 | } |
272 | #endif | ||
269 | if (GNUNET_YES != | 273 | if (GNUNET_YES != |
270 | GNUNET_CLIENT_test (cfg, | 274 | GNUNET_CLIENT_test (cfg, |
271 | "arm")) | 275 | "arm")) |