]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r15989@catbus: nickm | 2007-10-20 19:48:29 -0400
authorNick Mathewson <nickm@torproject.org>
Sat, 20 Oct 2007 23:48:35 +0000 (23:48 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 20 Oct 2007 23:48:35 +0000 (23:48 +0000)
 Fix implementation of sdmap_size and rimap_size() and eimap_size().  Nobody was using them, so no backport needed.

svn:r12068

src/common/container.h

index 1f58b30557144908a491e9b6b92732b2d4155925..35ba74317367399aa13fbbd5ec9f670a1e186caf 100644 (file)
@@ -235,7 +235,7 @@ void* strmap_remove_lc(strmap_t *map, const char *key);
   }                                                                     \
   static INLINE int prefix##size(maptype *map)                          \
   {                                                                     \
-    return digestmap_isempty((digestmap_t*)map);                        \
+    return digestmap_size((digestmap_t*)map);                           \
   }                                                                     \
   static INLINE prefix##iter_t *prefix##iter_init(maptype *map)         \
   {                                                                     \