summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-24 22:11:18 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-24 22:11:18 +0000
commit3452486ac65af88cf524cb93041a2a173335da27 (patch)
treeb3b7ec3eceac0e8060fe0da76c2e4bada31be148 /src/or/connection.c
parentee8dce3084261447420f0bb7abeb6807583325ee (diff)
downloadtor-3452486ac65af88cf524cb93041a2a173335da27.tar.gz
tor-3452486ac65af88cf524cb93041a2a173335da27.zip
r14422@tombo: nickm | 2008-02-24 17:09:56 -0500
Whitespace fixes svn:r13700
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 76b943964c..27c15c7b7d 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -2647,12 +2647,13 @@ static void
set_constrained_socket_buffers(int sock, int size)
{
void *sz = (void*)&size;
- if (setsockopt(sock, SOL_SOCKET, SO_SNDBUF, sz,(socklen_t)sizeof(size)) < 0) {
+ socklen_t sz_sz = (socklen_t) sizeof(size);
+ if (setsockopt(sock, SOL_SOCKET, SO_SNDBUF, sz, sz_sz) < 0) {
int e = tor_socket_errno(sock);
log_warn(LD_NET, "setsockopt() to constrain send "
"buffer to %d bytes failed: %s", size, tor_socket_strerror(e));
}
- if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, sz,(socklen_t)sizeof(size)) < 0) {
+ if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, sz, sz_sz) < 0) {
int e = tor_socket_errno(sock);
log_warn(LD_NET, "setsockopt() to constrain recv "
"buffer to %d bytes failed: %s", size, tor_socket_strerror(e));