-fix ftbfs
[oweals/gnunet.git] / src / gnsrecord / gnsrecord.c
index 0993e7aba055e95342ff7ddb9a37f43d564cfe69..c362848242fa37167a314cd3d4f84d3e7209030d 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009-2013 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009-2013 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -211,6 +211,9 @@ GNUNET_GNSRECORD_typename_to_number (const char *dns_typename)
   struct Plugin *plugin;
   uint32_t ret;
 
+  if (0 == strcasecmp (dns_typename,
+                       "ANY"))
+    return GNUNET_GNSRECORD_TYPE_ANY;
   init ();
   for (i = 0; i < num_plugins; i++)
   {
@@ -236,6 +239,8 @@ GNUNET_GNSRECORD_number_to_typename (uint32_t type)
   struct Plugin *plugin;
   const char * ret;
 
+  if (GNUNET_GNSRECORD_TYPE_ANY == type)
+    return "ANY";
   init ();
   for (i = 0; i < num_plugins; i++)
   {