aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-05 21:45:56 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-05 21:45:56 +0000
commit8c039279e4b35ec94ae9c979709fb56b7119d5b5 (patch)
tree4274c9af46609d37a231d2a8034338181b56b00a /src/gnsrecord
parent5a6156c1e11e74298cf3cfe4c60813d03e711493 (diff)
downloadgnunet-8c039279e4b35ec94ae9c979709fb56b7119d5b5.tar.gz
gnunet-8c039279e4b35ec94ae9c979709fb56b7119d5b5.zip
permit 'ANY' for typename
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/gnsrecord.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gnsrecord/gnsrecord.c b/src/gnsrecord/gnsrecord.c
index 0993e7aba..d2e7f8f29 100644
--- a/src/gnsrecord/gnsrecord.c
+++ b/src/gnsrecord/gnsrecord.c
@@ -211,6 +211,9 @@ GNUNET_GNSRECORD_typename_to_number (const char *dns_typename)
211 struct Plugin *plugin; 211 struct Plugin *plugin;
212 uint32_t ret; 212 uint32_t ret;
213 213
214 if (0 == strcasecmp (dns_typename,
215 "ANY"))
216 return GNUNET_GNSRECORD_TYPE_ANY;
214 init (); 217 init ();
215 for (i = 0; i < num_plugins; i++) 218 for (i = 0; i < num_plugins; i++)
216 { 219 {
@@ -236,6 +239,8 @@ GNUNET_GNSRECORD_number_to_typename (uint32_t type)
236 struct Plugin *plugin; 239 struct Plugin *plugin;
237 const char * ret; 240 const char * ret;
238 241
242 if (GNUNET_GNSRECORD_TYPE_ANY == type)
243 return "ANY";
239 init (); 244 init ();
240 for (i = 0; i < num_plugins; i++) 245 for (i = 0; i < num_plugins; i++)
241 { 246 {