Pass socklen_t* instead of int* to getsockopt, accept, getpeername, recvfrom

This commit is contained in:
Hallvard Furuseth 1999-07-16 18:43:10 +00:00
parent 973f936ce7
commit 5ab862aee7
6 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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 */

View File

@ -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 */

View File

@ -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 );

View File

@ -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 */

View File

@ -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