diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2008-07-31 10:33:02 +0000 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2008-07-31 10:33:02 +0000 |
commit | 626fafe56390e357a00cd118a57eaf96a2ed45d8 (patch) | |
tree | 8ad504c7eef6423e716afa7930af7c9ba0693b22 /src | |
parent | e4d71827d5c8b35b4425e7f9eb1ae5ef09d71aec (diff) | |
download | tor-626fafe56390e357a00cd118a57eaf96a2ed45d8.tar tor-626fafe56390e357a00cd118a57eaf96a2ed45d8.tar.gz |
Make compiler with GCC warnings enabled happy.
svn:r16300
Diffstat (limited to 'src')
-rw-r--r-- | src/common/address.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/address.c b/src/common/address.c index fef1f80fe..3328f41f1 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))) { |