mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-06 15:00:40 +08:00
Pass socklen_t* instead of int* to getsockopt, accept, getpeername, recvfrom
This commit is contained in:
parent
973f936ce7
commit
5ab862aee7
@ -64,7 +64,7 @@ main( int argc, char **argv )
|
||||
char *myname;
|
||||
struct hostent *hp;
|
||||
struct sockaddr_in peername;
|
||||
int peernamelen;
|
||||
socklen_t peernamelen;
|
||||
int interactive = 0;
|
||||
|
||||
deref = FINGER_DEREF;
|
||||
|
@ -87,7 +87,7 @@ main( int argc, char **argv )
|
||||
fd_set readfds;
|
||||
struct hostent *hp;
|
||||
struct sockaddr_in from;
|
||||
int fromlen;
|
||||
socklen_t fromlen;
|
||||
|
||||
#if defined( LDAP_PROCTITLE ) && !defined( HAVE_SETPROCTITLE )
|
||||
/* for setproctitle */
|
||||
|
@ -101,7 +101,7 @@ main (int argc, char **argv )
|
||||
fd_set readfds;
|
||||
struct hostent *hp;
|
||||
struct sockaddr_in from;
|
||||
int fromlen;
|
||||
socklen_t fromlen;
|
||||
|
||||
#if defined( LDAP_PROCTITLE ) && !defined( HAVE_SETPROCTITLE )
|
||||
/* for setproctitle */
|
||||
|
@ -1003,7 +1003,7 @@ dgram_read( Sockbuf *sb, void *buf, ber_len_t len )
|
||||
{
|
||||
#ifdef LDAP_CONNECTIONLESS
|
||||
ber_slen_t rc;
|
||||
int addrlen;
|
||||
socklen_t addrlen;
|
||||
struct dgram_data *dd;
|
||||
|
||||
assert( sb != NULL );
|
||||
|
@ -174,7 +174,7 @@ ldap_host_connected_to( Sockbuf *sb )
|
||||
{
|
||||
struct hostent *hp;
|
||||
char *p;
|
||||
int len;
|
||||
socklen_t len;
|
||||
struct sockaddr_in sin;
|
||||
|
||||
/* buffers for gethostbyaddr_r */
|
||||
|
@ -111,7 +111,7 @@ main( int argc, char **argv )
|
||||
fd_set readfds;
|
||||
struct hostent *hp;
|
||||
struct sockaddr_in from;
|
||||
int len;
|
||||
socklen_t len;
|
||||
int dsapargc;
|
||||
char **dsapargv;
|
||||
#ifdef LDAP_PROCTITLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user