summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-02 15:40:04 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-02 15:40:04 -0400
commita14c6cb70f56c24cc76023366f8ae56900f72296 (patch)
treef739045e7e41c83a1db9805e9682ced34f10e89f /src/common
parent44f0dfa53bd0eea816fd2785088b4295a91112e4 (diff)
downloadtor-a14c6cb70f56c24cc76023366f8ae56900f72296.tar.gz
tor-a14c6cb70f56c24cc76023366f8ae56900f72296.zip
Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.
This fixes a clangalyzer warning, and makes our C slightly better C.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/container.h2
1 files changed, 1 insertions, 1 deletions
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) \
{ \