[tor-commits] [tor/master] Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.
nickm at torproject.org
nickm at torproject.org
Tue Sep 2 19:42:08 UTC 2014
commit a14c6cb70f56c24cc76023366f8ae56900f72296
Author: Nick Mathewson <nickm at torproject.org>
Date: Tue Sep 2 15:40:04 2014 -0400
Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.
This fixes a clangalyzer warning, and makes our C slightly better C.
---
src/common/container.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/container.h b/src/common/container.h
index 9fb4cf3..26ac851 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -473,7 +473,7 @@ void* strmap_remove_lc(strmap_t *map, const char *key);
#define DECLARE_TYPED_DIGESTMAP_FNS(prefix, maptype, valtype) \
typedef struct maptype maptype; \
- typedef struct prefix##iter_t prefix##iter_t; \
+ typedef struct prefix##iter_t *prefix##iter_t; \
ATTR_UNUSED static INLINE maptype* \
prefix##new(void) \
{ \
More information about the tor-commits
mailing list