Make the addrlen argument to my_accept() a socklen_t.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@277 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-07-14 02:59:11 +00:00
parent 2235c029bb
commit a3b938dfd5
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ char * BX_ip_to_host (const char *);
char * BX_one_to_another (const char *); char * BX_one_to_another (const char *);
int BX_set_blocking (int); int BX_set_blocking (int);
int BX_set_non_blocking (int); int BX_set_non_blocking (int);
int my_accept (int, struct sockaddr *, int *); int my_accept (int, struct sockaddr *, socklen_t *);
int lame_resolv (const char *, struct sockaddr_foobar *); int lame_resolv (const char *, struct sockaddr_foobar *);
#define my_isspace(x) \ #define my_isspace(x) \

View File

@@ -781,7 +781,7 @@ extern char *BX_one_to_another (const char *what)
* has been closed in the interim. This wrapper for accept() attempts to * has been closed in the interim. This wrapper for accept() attempts to
* defeat this by making the accept() call nonblocking. * defeat this by making the accept() call nonblocking.
*/ */
int my_accept (int s, struct sockaddr *addr, int *addrlen) int my_accept (int s, struct sockaddr *addr, socklen_t *addrlen)
{ {
int retval; int retval;
set_non_blocking(s); set_non_blocking(s);