From 370d0332d12394caeeaeafcfad406c12d11121fb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Mar 2015 15:36:01 +0000 Subject: return GNS2DNS records if explicitly requested --- src/gns/plugin_gnsrecord_gns.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gns/plugin_gnsrecord_gns.c') 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, unsigned int i; i=0; - while ( (gns_name_map[i].name != NULL) && - (0 != strcasecmp (gns_typename, gns_name_map[i].name)) ) + while ( (NULL != gns_name_map[i].name) && + (0 != strcasecmp (gns_typename, + gns_name_map[i].name)) ) i++; return gns_name_map[i].number; } @@ -362,7 +363,7 @@ gns_number_to_typename (void *cls, unsigned int i; i=0; - while ( (gns_name_map[i].name != NULL) && + while ( (NULL != gns_name_map[i].name) && (type != gns_name_map[i].number) ) i++; return gns_name_map[i].name; -- cgit v1.2.3