Comparing EXTRACTOR_MetaType to -1 is always false
authorDavid Barksdale <amatus.amongus@gmail.com>
Tue, 16 Aug 2016 03:47:32 +0000 (03:47 +0000)
committerDavid Barksdale <amatus.amongus@gmail.com>
Tue, 16 Aug 2016 03:47:32 +0000 (03:47 +0000)
src/util/container_meta_data.c

index d7c5ddb116df82458bb9372488dd34fca2709111..b4d231dae93b9a26b0931ff02338aad743093230 100644 (file)
@@ -603,7 +603,7 @@ GNUNET_CONTAINER_meta_data_get_first_by_types (const struct
 {
   char *ret;
   va_list args;
-  enum EXTRACTOR_MetaType type;
+  int type;
 
   if (NULL == md)
     return NULL;
@@ -611,7 +611,7 @@ GNUNET_CONTAINER_meta_data_get_first_by_types (const struct
   va_start (args, md);
   while (1)
   {
-    type = va_arg (args, enum EXTRACTOR_MetaType);
+    type = va_arg (args, int);
     if (-1 == type)
       break;
     if (NULL != (ret = GNUNET_CONTAINER_meta_data_get_by_type (md, type)))