diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-04 21:58:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-04 21:58:09 +0000 |
commit | c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4 (patch) | |
tree | 557afcd448902108efb75ee9ed4408d1408d87fc /src/common/address.c | |
parent | fa2f72ded752689fc0ece225b9d8279ddd13b88d (diff) | |
download | tor-c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4.tar.gz tor-c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4.zip |
Fix mingw build with --enable-gcc-warnings set.
svn:r16759
Diffstat (limited to 'src/common/address.c')
-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 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)); |