[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r18099: {tor} Fix a compile warning on win32. (tor/trunk/src/or)
Author: nickm
Date: 2009-01-13 23:03:24 -0500 (Tue, 13 Jan 2009)
New Revision: 18099
Modified:
tor/trunk/src/or/eventdns.c
Log:
Fix a compile warning on win32.
Modified: tor/trunk/src/or/eventdns.c
===================================================================
--- tor/trunk/src/or/eventdns.c 2009-01-13 16:48:51 UTC (rev 18098)
+++ tor/trunk/src/or/eventdns.c 2009-01-14 04:03:24 UTC (rev 18099)
@@ -2212,7 +2212,7 @@
{
memset(&global_bind_address, 0, sizeof(global_bind_address));
if (addr) {
- assert(addrlen <= sizeof(global_bind_address));
+ assert(addrlen <= (socklen_t)sizeof(global_bind_address));
memcpy(&global_bind_address, addr, addrlen);
global_bind_addrlen = addrlen;
global_bind_addr_is_set = 1;