aboutsummaryrefslogtreecommitdiff
path: root/src/or/geoip.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2010-09-20 18:40:32 -0400
committerRoger Dingledine <arma@torproject.org>2010-09-20 18:40:32 -0400
commit47b23bd03e005c7a86ddd1dbcba619c1840a3232 (patch)
treea01b52445785e4df256241c3de76c496fe4481c1 /src/or/geoip.c
parentff5ffd17760379612b1204fa4de9ab1e6980aac9 (diff)
downloadtor-47b23bd03e005c7a86ddd1dbcba619c1840a3232.tar.gz
tor-47b23bd03e005c7a86ddd1dbcba619c1840a3232.zip
A start at a patch for bug 1943 (alignment issues)
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r--src/or/geoip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c
index d9c8a01519..7f1052e98d 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -145,6 +145,7 @@ _geoip_compare_entries(const void **_a, const void **_b)
static int
_geoip_compare_key_to_entry(const void *_key, const void **_member)
{
+ /* No alignment issue here, since _key really is a pointer to uint32_t */
const uint32_t addr = *(uint32_t *)_key;
const geoip_entry_t *entry = *_member;
if (addr < entry->ip_low)