mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
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:
parent
44f0dfa53b
commit
a14c6cb70f
@ -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) \
|
||||
{ \
|
||||
|
Loading…
Reference in New Issue
Block a user