diff options
author | Roger Dingledine <arma@torproject.org> | 2010-09-20 18:40:32 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2010-09-20 18:40:32 -0400 |
commit | 47b23bd03e005c7a86ddd1dbcba619c1840a3232 (patch) | |
tree | a01b52445785e4df256241c3de76c496fe4481c1 /src/or/geoip.c | |
parent | ff5ffd17760379612b1204fa4de9ab1e6980aac9 (diff) | |
download | tor-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.c | 1 |
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) |