From 626fafe56390e357a00cd118a57eaf96a2ed45d8 Mon Sep 17 00:00:00 2001 From: Karsten Loesing Date: Thu, 31 Jul 2008 10:33:02 +0000 Subject: Make compiler with GCC warnings enabled happy. svn:r16300 --- src/common/address.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/common/address.c b/src/common/address.c index fef1f80fea..3328f41f1b 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -700,8 +700,8 @@ tor_addr_compare_masked(const tor_addr_t *addr1, const tor_addr_t *addr2, return (a1 < a2) ? -1 : (a1 == a2) ? 0 : 1; } case AF_INET6: { - uint8_t *a1 = addr1->addr.in6_addr.s6_addr; - uint8_t *a2 = addr2->addr.in6_addr.s6_addr; + const uint8_t *a1 = addr1->addr.in6_addr.s6_addr; + const uint8_t *a2 = addr2->addr.in6_addr.s6_addr; const int bytes = mbits >> 3; const int leftover_bits = mbits & 7; if (bytes && (r = memcmp(a1, a2, bytes))) { -- cgit v1.2.3-54-g00ecf