[tor-commits] [tor/master] Fix a compile warning on OS X 10.6

nickm at torproject.org nickm at torproject.org
Fri Jul 15 21:53:23 UTC 2011


commit 2d0b56a5050380f541a9ddd3143dd95300c3f065
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Fri Jul 15 23:12:43 2011 +0200

    Fix a compile warning on OS X 10.6
---
 src/or/connection_or.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 2871f1f..e66d36a 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -262,7 +262,8 @@ connection_or_report_broken_states(int severity, int domain)
   items = smartlist_create();
   STRMAP_FOREACH(broken_connection_counts, state, void *, countptr) {
     broken_state_count_t *c = tor_malloc(sizeof(broken_state_count_t));
-    total += c->count = (intptr_t)countptr;
+    c->count = (intptr_t)countptr;
+    total += (int)c->count;
     c->state = state;
     smartlist_add(items, c);
   } STRMAP_FOREACH_END;





More information about the tor-commits mailing list