aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-10-15 18:48:48 +0000
committerNick Mathewson <nickm@torproject.org>2003-10-15 18:48:48 +0000
commit695920d09fb405b04f6798a1f6b236cba9e08a5f (patch)
tree6e4e6714c6d502f696e7eec8c249405bca32e468 /src/common
parent22ef733058bb2de02af1b1463f51259ab4462df1 (diff)
downloadtor-695920d09fb405b04f6798a1f6b236cba9e08a5f.tar
tor-695920d09fb405b04f6798a1f6b236cba9e08a5f.tar.gz
Build without warnings on OS X.
svn:r595
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 79bc57782..5f7a6017d 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -82,7 +82,7 @@ tv_udiff(struct timeval *start, struct timeval *end)
udiff = secdiff*1000000L + (end->tv_usec - start->tv_usec);
if(udiff < 0) {
log_fn(LOG_INFO, "start (%ld.%ld) is after end (%ld.%ld). Returning 0.",
- start->tv_sec, start->tv_usec, end->tv_sec, end->tv_usec);
+ (long)start->tv_sec, (long)start->tv_usec, (long)end->tv_sec, (long)end->tv_usec);
return 0;
}
return udiff;
@@ -215,7 +215,7 @@ tor_socketpair(int family, int type, int protocol, int fd[2])
int acceptor = -1;
struct sockaddr_in listen_addr;
struct sockaddr_in connect_addr;
- size_t size;
+ int size;
if (protocol
#ifdef AF_UNIX