aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-12-16 05:33:11 +0000
committerNick Mathewson <nickm@torproject.org>2003-12-16 05:33:11 +0000
commit7c439c30d00e4851458b66c25a848e27d30c7abe (patch)
tree2332de0114985ff595f7d0e561185ecbc2a314e0 /src/or/buffers.c
parenteeae6157ed824dd59c5474b522e1703cb86c230b (diff)
downloadtor-7c439c30d00e4851458b66c25a848e27d30c7abe.tar
tor-7c439c30d00e4851458b66c25a848e27d30c7abe.tar.gz
Resolve format warnings on MacOS X 10.3
svn:r938
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index d8a0e5258..016e10a5d 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -291,7 +291,7 @@ int write_to_buf(const char *string, int string_len, buf_t *buf) {
assert(string && BUF_OK(buf));
if (buf_ensure_capacity(buf, buf->datalen+string_len)) {
- log_fn(LOG_WARN, "buflen too small, can't hold %d bytes.",buf->datalen+string_len);
+ log_fn(LOG_WARN, "buflen too small, can't hold %d bytes.", (int)buf->datalen+string_len);
return -1;
}
@@ -453,7 +453,7 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) {
tmpbuf = inet_ntoa(in);
if(strlen(tmpbuf)+1 > MAX_SOCKS_ADDR_LEN) {
log_fn(LOG_WARN,"socks5 IP takes %d bytes, which doesn't fit in %d",
- strlen(tmpbuf)+1,MAX_SOCKS_ADDR_LEN);
+ (int)strlen(tmpbuf)+1,(int)MAX_SOCKS_ADDR_LEN);
return -1;
}
strcpy(req->address,tmpbuf);
@@ -502,7 +502,8 @@ int fetch_from_buf_socks(buf_t *buf, socks_request_t *req) {
in.s_addr = htonl(destip);
tmpbuf = inet_ntoa(in);
if(strlen(tmpbuf)+1 > MAX_SOCKS_ADDR_LEN) {
- log_fn(LOG_WARN,"socks4 addr (%d bytes) too long.", strlen(tmpbuf));
+ log_fn(LOG_WARN,"socks4 addr (%d bytes) too long.",
+ (int)strlen(tmpbuf));
return -1;
}
log_fn(LOG_DEBUG,"socks4: successfully read destip (%s)", tmpbuf);