[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.



commit a14c6cb70f56c24cc76023366f8ae56900f72296
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Sep 2 15:40:04 2014 -0400

    Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.
    
    This fixes a clangalyzer warning, and makes our C slightly better C.
---
 src/common/container.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/container.h b/src/common/container.h
index 9fb4cf3..26ac851 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)                                                     \
   {                                                                     \



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits