nap:naplink_handlelink() The third argument to accept() should be a
socklen_t. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@268 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1670,7 +1670,7 @@ int rc;
|
|||||||
void naplink_handlelink(int snum)
|
void naplink_handlelink(int snum)
|
||||||
{
|
{
|
||||||
struct sockaddr_in remaddr;
|
struct sockaddr_in remaddr;
|
||||||
int sra = sizeof(struct sockaddr_in);
|
socklen_t sra = sizeof(struct sockaddr_in);
|
||||||
int sock = -1;
|
int sock = -1;
|
||||||
if ((sock = accept(snum, (struct sockaddr *) &remaddr, &sra)) > -1)
|
if ((sock = accept(snum, (struct sockaddr *) &remaddr, &sra)) > -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user