aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-06-16 18:35:21 +0000
committerNick Mathewson <nickm@torproject.org>2008-06-16 18:35:21 +0000
commitdd6324b0c67a6fd5c69cb04896f223e671e7c65a (patch)
tree1b2ae5ab4c402d144b439795991d988ab8d1e8e9
parent6299f4429a6a055ca9d5b6f06da9efd025bd1630 (diff)
downloadtor-dd6324b0c67a6fd5c69cb04896f223e671e7c65a.tar
tor-dd6324b0c67a6fd5c69cb04896f223e671e7c65a.tar.gz
More bug 707 fixes: no #if/#endif pairs inside macro arguments.
svn:r15307
-rw-r--r--ChangeLog4
-rw-r--r--src/or/routerlist.c9
2 files changed, 6 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 435bc6421..6f623e6ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,7 +15,9 @@ Changes in version 0.2.1.2-alpha - 2008-??-??
o Bugfixes:
- Asking for a conditional consensus at .../consensus/<fingerprints>
would crash a dirserver if it did not already have a consensus.
- - Clean up some macro/cpp interactions.
+ - Clean up some macro/CPP interactions: some GCC versions don't like
+ #if/#endif pairs inside macro arguments. Fixes bug 707.
+
Changes in version 0.2.1.1-alpha - 2008-06-13
o Major features:
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 58f950feb..0d581409c 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4525,7 +4525,6 @@ routerlist_assert_ok(routerlist_t *rl)
r->cache_info.signed_descriptor_digest);
tor_assert(&(r->cache_info) == sd2);
tor_assert(r->cache_info.routerlist_index == r_sl_idx);
-#if 0
/* XXXX021.
*
* Hoo boy. We need to fix this one, and the fix is a bit tricky, so
@@ -4543,13 +4542,12 @@ routerlist_assert_ok(routerlist_t *rl)
* reset our retry count for an extrainfo, but that's not the end
* of the world. Changing the representation in 0.2.0.x would just
* destabilize the codebase.
- */
if (!tor_digest_is_zero(r->cache_info.extra_info_digest)) {
signed_descriptor_t *sd3 =
sdmap_get(rl->desc_by_eid_map, r->cache_info.extra_info_digest);
tor_assert(sd3 == &(r->cache_info));
}
-#endif
+ */
});
SMARTLIST_FOREACH(rl->old_routers, signed_descriptor_t *, sd,
{
@@ -4558,14 +4556,13 @@ routerlist_assert_ok(routerlist_t *rl)
sd2 = sdmap_get(rl->desc_digest_map, sd->signed_descriptor_digest);
tor_assert(sd == sd2);
tor_assert(sd->routerlist_index == sd_sl_idx);
-#if 0
- /* XXXX021 see above. */
+ /* XXXX021 see above.
if (!tor_digest_is_zero(sd->extra_info_digest)) {
signed_descriptor_t *sd3 =
sdmap_get(rl->desc_by_eid_map, sd->extra_info_digest);
tor_assert(sd3 == sd);
}
-#endif
+ */
});
RIMAP_FOREACH(rl->identity_map, d, r) {