Fix a compile warning on OS X 10.6

This commit is contained in:
Sebastian Hahn
2011-07-15 23:12:43 +02:00
parent 44cfa53873
commit 2d0b56a505
+2 -1
View File
@@ -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;