From c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 4 Sep 2008 21:58:09 +0000 Subject: Fix mingw build with --enable-gcc-warnings set. svn:r16759 --- src/common/address.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/address.c') diff --git a/src/common/address.c b/src/common/address.c index c7483af09c..a9f731e9a2 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -64,7 +64,7 @@ tor_addr_to_sockaddr(const tor_addr_t *a, { if (a->family == AF_INET) { struct sockaddr_in *sin; - if (len < sizeof(struct sockaddr_in)) + if (len < (int)sizeof(struct sockaddr_in)) return -1; sin = (struct sockaddr_in *)sa_out; sin->sin_family = AF_INET; @@ -73,7 +73,7 @@ tor_addr_to_sockaddr(const tor_addr_t *a, return sizeof(struct sockaddr_in); } else if (a->family == AF_INET6) { struct sockaddr_in6 *sin6; - if (len < sizeof(struct sockaddr_in6)) + if (len < (int)sizeof(struct sockaddr_in6)) return -1; sin6 = (struct sockaddr_in6 *)sa_out; memset(sin6, 0, sizeof(struct sockaddr_in6)); -- cgit v1.2.3-54-g00ecf