Make the namelen passed to getpeername() a socklen_t everywhere.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@279 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-07-14 03:18:47 +00:00
parent 27ed98a03d
commit 80cfa9c5d8
3 changed files with 4 additions and 4 deletions

View File

@@ -472,7 +472,7 @@ static time_t last_timeout = 0;
if (((des = server_list[i].write) > -1) && FD_ISSET(des, wr) && !(server_list[i].login_flags & LOGGED_IN))
{
struct sockaddr_in sa;
int salen = sizeof(struct sockaddr_in);
socklen_t salen = sizeof(struct sockaddr_in);
if (getpeername(des, (struct sockaddr *) &sa, &salen) != -1)
{