[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/master 14/15] Fix a compile warning on OSX 10.6
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date: Thu, 7 Oct 2010 06:31:08 +0200
Subject: Fix a compile warning on OSX 10.6
Commit: 34546e2573d4eea02f3622d3d8d27ef0b545974d
---
src/common/address.c | 2 +-
src/common/address.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/address.c b/src/common/address.c
index c35f04c..dcc32f1 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -311,7 +311,7 @@ tor_addr_is_internal(const tor_addr_t *addr, int for_listening)
* brackets.
*/
const char *
-tor_addr_to_str(char *dest, const tor_addr_t *addr, int len, int decorate)
+tor_addr_to_str(char *dest, const tor_addr_t *addr, size_t len, int decorate)
{
const char *ptr;
tor_assert(addr && dest);
diff --git a/src/common/address.h b/src/common/address.h
index 6116bb4..457532d 100644
--- a/src/common/address.h
+++ b/src/common/address.h
@@ -144,7 +144,7 @@ int tor_addr_port_parse(const char *s, tor_addr_t *addr_out,
int tor_addr_parse_mask_ports(const char *s,
tor_addr_t *addr_out, maskbits_t *mask_out,
uint16_t *port_min_out, uint16_t *port_max_out);
-const char * tor_addr_to_str(char *dest, const tor_addr_t *addr, int len,
+const char * tor_addr_to_str(char *dest, const tor_addr_t *addr, size_t len,
int decorate);
int tor_addr_from_str(tor_addr_t *addr, const char *src);
void tor_addr_copy(tor_addr_t *dest, const tor_addr_t *src);
--
1.7.1