Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.

This fixes a clangalyzer warning, and makes our C slightly better C.
This commit is contained in:
Nick Mathewson 2014-09-02 15:40:04 -04:00
parent 44f0dfa53b
commit a14c6cb70f

View File

@ -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) \
{ \