mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Build without warnings on OS X.
svn:r595
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -270,7 +270,7 @@ static int connection_or_process_cell_from_inbuf(connection_t *conn) {
|
||||
cell_t cell;
|
||||
|
||||
log_fn(LOG_DEBUG,"%d: starting, inbuf_datalen %d (%d pending in tls object).",
|
||||
conn->s,buf_datalen(conn->inbuf),tor_tls_get_pending_bytes(conn->tls));
|
||||
conn->s,(int)buf_datalen(conn->inbuf),tor_tls_get_pending_bytes(conn->tls));
|
||||
if(buf_datalen(conn->inbuf) < CELL_NETWORK_SIZE) /* entire response available? */
|
||||
return 0; /* not yet */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user