summaryrefslogtreecommitdiff
path: root/src/clients.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
commit0b635145d3a16f4e6bb4182956917a320afc1bd7 (patch)
tree83a56b7225f564a1a6d3c3a12a7f4dab3505ceff /src/clients.c
parentconfigure cleanup (diff)
fixed build with -Wall
added build support for clang git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@67 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/clients.c')
-rw-r--r--src/clients.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients.c b/src/clients.c
index 696e2e4..869733b 100644
--- a/src/clients.c
+++ b/src/clients.c
@@ -76,7 +76,7 @@ static int handle_connect(client_t* c, int32_t buffer_size_)
return -1;
int error = 0;
- int len = sizeof(error);
+ socklen_t len = sizeof(error);
if(getsockopt(c->fd_[1], SOL_SOCKET, SO_ERROR, &error, &len)==-1) {
log_printf(ERROR, "Error on getsockopt(): %s", strerror(errno));
return -1;