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

@@ -3794,7 +3794,7 @@ struct servent *serv;
struct sockaddr_foobar addr;
struct hostent *host;
char buf[128], *hostname = buf;
int address_len;
socklen_t address_len;
address_len = sizeof(struct sockaddr_foobar);
if ((getpeername(rc, (struct sockaddr *) &addr, &address_len)) != -1)