Browse Source

Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.

This fixes a clangalyzer warning, and makes our C slightly better C.
Nick Mathewson 9 years ago
parent
commit
a14c6cb70f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/container.h

+ 1 - 1
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)                                                     \
   {                                                                     \