From b4cd944bef68242f83ac7392435e19e01f87f99c Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 13 Jul 2013 22:21:32 +0000 Subject: [PATCH] The third argument to accept() should be a socklen_t. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@269 13b04d17-f746-0410-82c6-800466cd88b0 --- source/dcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dcc.c b/source/dcc.c index 96504f8..16e49b8 100644 --- a/source/dcc.c +++ b/source/dcc.c @@ -3931,7 +3931,7 @@ SocketList *s; int sock, s1; DCC_int *new; struct sockaddr_in data_addr = { 0 }; - int len = sizeof(struct sockaddr_in); + socklen_t len; char tmp[BIG_BUFFER_SIZE+1], *bufptr; if ((sock = open_listen_port(s->is_read)) == -1) return -1;