[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r16300: Make compiler with GCC warnings enabled happy. (tor/trunk/src/common)
Author: kloesing
Date: 2008-07-31 06:33:02 -0400 (Thu, 31 Jul 2008)
New Revision: 16300
Modified:
tor/trunk/src/common/address.c
Log:
Make compiler with GCC warnings enabled happy.
Modified: tor/trunk/src/common/address.c
===================================================================
--- tor/trunk/src/common/address.c 2008-07-31 10:11:58 UTC (rev 16299)
+++ tor/trunk/src/common/address.c 2008-07-31 10:33:02 UTC (rev 16300)
@@ -700,8 +700,8 @@
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))) {