From a14c6cb70f56c24cc76023366f8ae56900f72296 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 2 Sep 2014 15:40:04 -0400 Subject: 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(-) (limited to 'src') diff --git a/src/common/container.h b/src/common/container.h index 9fb4cf334c..26ac85120d 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) \ { \ -- cgit v1.2.3-54-g00ecf