[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r15307: More bug 707 fixes: no #if/#endif pairs inside macro argumen (in tor/trunk: . src/or)
Author: nickm
Date: 2008-06-16 14:35:21 -0400 (Mon, 16 Jun 2008)
New Revision: 15307
Modified:
tor/trunk/ChangeLog
tor/trunk/src/or/routerlist.c
Log:
More bug 707 fixes: no #if/#endif pairs inside macro arguments.
Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog 2008-06-16 18:16:42 UTC (rev 15306)
+++ tor/trunk/ChangeLog 2008-06-16 18:35:21 UTC (rev 15307)
@@ -15,8 +15,10 @@
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:
- More work on making our TLS handshake blend in: modify the list
Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c 2008-06-16 18:16:42 UTC (rev 15306)
+++ tor/trunk/src/or/routerlist.c 2008-06-16 18:35:21 UTC (rev 15307)
@@ -4525,7 +4525,6 @@
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 @@
* 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 @@
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) {