diff options
Diffstat (limited to 'src/gns/plugin_gnsrecord_gns.c')
-rw-r--r-- | src/gns/plugin_gnsrecord_gns.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c index 14b015c0c..d1de73e49 100644 --- a/src/gns/plugin_gnsrecord_gns.c +++ b/src/gns/plugin_gnsrecord_gns.c | |||
@@ -244,7 +244,7 @@ gns_string_to_value (void *cls, | |||
244 | static struct { | 244 | static struct { |
245 | const char *name; | 245 | const char *name; |
246 | uint32_t number; | 246 | uint32_t number; |
247 | } name_map[] = { | 247 | } gns_name_map[] = { |
248 | { "PKEY", GNUNET_GNSRECORD_TYPE_PKEY }, | 248 | { "PKEY", GNUNET_GNSRECORD_TYPE_PKEY }, |
249 | { "NICK", GNUNET_GNSRECORD_TYPE_NICK }, | 249 | { "NICK", GNUNET_GNSRECORD_TYPE_NICK }, |
250 | { "LEHO", GNUNET_GNSRECORD_TYPE_LEHO }, | 250 | { "LEHO", GNUNET_GNSRECORD_TYPE_LEHO }, |
@@ -268,10 +268,10 @@ gns_typename_to_number (void *cls, | |||
268 | unsigned int i; | 268 | unsigned int i; |
269 | 269 | ||
270 | i=0; | 270 | i=0; |
271 | while ( (name_map[i].name != NULL) && | 271 | while ( (gns_name_map[i].name != NULL) && |
272 | (0 != strcasecmp (gns_typename, name_map[i].name)) ) | 272 | (0 != strcasecmp (gns_typename, gns_name_map[i].name)) ) |
273 | i++; | 273 | i++; |
274 | return name_map[i].number; | 274 | return gns_name_map[i].number; |
275 | } | 275 | } |
276 | 276 | ||
277 | 277 | ||
@@ -289,10 +289,10 @@ gns_number_to_typename (void *cls, | |||
289 | unsigned int i; | 289 | unsigned int i; |
290 | 290 | ||
291 | i=0; | 291 | i=0; |
292 | while ( (name_map[i].name != NULL) && | 292 | while ( (gns_name_map[i].name != NULL) && |
293 | (type != name_map[i].number) ) | 293 | (type != gns_name_map[i].number) ) |
294 | i++; | 294 | i++; |
295 | return name_map[i].name; | 295 | return gns_name_map[i].name; |
296 | } | 296 | } |
297 | 297 | ||
298 | 298 | ||