mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +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) \
|
#define DECLARE_TYPED_DIGESTMAP_FNS(prefix, maptype, valtype) \
|
||||||
typedef struct maptype maptype; \
|
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* \
|
ATTR_UNUSED static INLINE maptype* \
|
||||||
prefix##new(void) \
|
prefix##new(void) \
|
||||||
{ \
|
{ \
|
||||||
|
Loading…
Reference in New Issue
Block a user