aboutsummaryrefslogtreecommitdiff
path: root/src/gns/plugin_gnsrecord_gns.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-23 15:36:01 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-23 15:36:01 +0000
commit370d0332d12394caeeaeafcfad406c12d11121fb (patch)
tree946ea9298b3f8b63fa0747fc1498706fbaccccfb /src/gns/plugin_gnsrecord_gns.c
parente1021601b1c0f17ab7ffd51badecc247902e0e2a (diff)
downloadgnunet-370d0332d12394caeeaeafcfad406c12d11121fb.tar.gz
gnunet-370d0332d12394caeeaeafcfad406c12d11121fb.zip
return GNS2DNS records if explicitly requested
Diffstat (limited to 'src/gns/plugin_gnsrecord_gns.c')
-rw-r--r--src/gns/plugin_gnsrecord_gns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c
index 99eaa6cf9..b2bca8810 100644
--- a/src/gns/plugin_gnsrecord_gns.c
+++ b/src/gns/plugin_gnsrecord_gns.c
@@ -341,8 +341,9 @@ gns_typename_to_number (void *cls,
341 unsigned int i; 341 unsigned int i;
342 342
343 i=0; 343 i=0;
344 while ( (gns_name_map[i].name != NULL) && 344 while ( (NULL != gns_name_map[i].name) &&
345 (0 != strcasecmp (gns_typename, gns_name_map[i].name)) ) 345 (0 != strcasecmp (gns_typename,
346 gns_name_map[i].name)) )
346 i++; 347 i++;
347 return gns_name_map[i].number; 348 return gns_name_map[i].number;
348} 349}
@@ -362,7 +363,7 @@ gns_number_to_typename (void *cls,
362 unsigned int i; 363 unsigned int i;
363 364
364 i=0; 365 i=0;
365 while ( (gns_name_map[i].name != NULL) && 366 while ( (NULL != gns_name_map[i].name) &&
366 (type != gns_name_map[i].number) ) 367 (type != gns_name_map[i].number) )
367 i++; 368 i++;
368 return gns_name_map[i].name; 369 return gns_name_map[i].name;