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
This commit is contained in:
@@ -3931,7 +3931,7 @@ SocketList *s;
|
|||||||
int sock, s1;
|
int sock, s1;
|
||||||
DCC_int *new;
|
DCC_int *new;
|
||||||
struct sockaddr_in data_addr = { 0 };
|
struct sockaddr_in data_addr = { 0 };
|
||||||
int len = sizeof(struct sockaddr_in);
|
socklen_t len;
|
||||||
char tmp[BIG_BUFFER_SIZE+1], *bufptr;
|
char tmp[BIG_BUFFER_SIZE+1], *bufptr;
|
||||||
if ((sock = open_listen_port(s->is_read)) == -1)
|
if ((sock = open_listen_port(s->is_read)) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user