aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2014-03-10 10:39:30 +0000
committerFlorian Dold <florian.dold@gmail.com>2014-03-10 10:39:30 +0000
commit2688a53703e3e1b4353aee8fc425fd1f6a793125 (patch)
tree2141dc0ba2811f5858cd48a056367905452e0cc9 /src/gns
parent22eef4ab2f96eb3c36d0b87152a469b3a4e47754 (diff)
downloadgnunet-2688a53703e3e1b4353aee8fc425fd1f6a793125.tar.gz
gnunet-2688a53703e3e1b4353aee8fc425fd1f6a793125.zip
Rename name_map and plugins from gns so that they are unique in a total c-file
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/plugin_gnsrecord_gns.c14
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,
244static struct { 244static 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