From: David Barksdale Date: Tue, 16 Aug 2016 03:47:32 +0000 (+0000) Subject: Comparing EXTRACTOR_MetaType to -1 is always false X-Git-Tag: initial-import-from-subversion-38251~378 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=720a38ea7519f5a1a820157f056b150ab3d4abd5;p=oweals%2Fgnunet.git Comparing EXTRACTOR_MetaType to -1 is always false --- diff --git a/src/util/container_meta_data.c b/src/util/container_meta_data.c index d7c5ddb11..b4d231dae 100644 --- a/src/util/container_meta_data.c +++ b/src/util/container_meta_data.c @@ -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)))