From: Nick Mathewson Date: Tue, 2 Sep 2014 19:40:04 +0000 (-0400) Subject: Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer. X-Git-Tag: tor-0.2.6.1-alpha~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14c6cb70f56c24cc76023366f8ae56900f72296;p=thirdparty%2Ftor.git Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer. This fixes a clangalyzer warning, and makes our C slightly better C. --- 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) \ { \