From: Hallvard Furuseth Date: Fri, 16 Jul 1999 18:43:10 +0000 (+0000) Subject: Pass socklen_t* instead of int* to getsockopt, accept, getpeername, recvfrom X-Git-Tag: OPENLDAP_REL_ENG_2_BP~110 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ab862aee770fe52b278ee112fc8f1e937121511;p=openldap Pass socklen_t* instead of int* to getsockopt, accept, getpeername, recvfrom --- diff --git a/clients/finger/main.c b/clients/finger/main.c index d172380fad..19e72277df 100644 --- a/clients/finger/main.c +++ b/clients/finger/main.c @@ -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; diff --git a/clients/gopher/go500.c b/clients/gopher/go500.c index 323b9fbe42..3d95f4d6f3 100644 --- a/clients/gopher/go500.c +++ b/clients/gopher/go500.c @@ -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 */ diff --git a/clients/gopher/go500gw.c b/clients/gopher/go500gw.c index 9f8935fcd5..46c69cbe1c 100644 --- a/clients/gopher/go500gw.c +++ b/clients/gopher/go500gw.c @@ -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 */ diff --git a/libraries/liblber/sockbuf.c b/libraries/liblber/sockbuf.c index 123692deda..b81235b946 100644 --- a/libraries/liblber/sockbuf.c +++ b/libraries/liblber/sockbuf.c @@ -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 ); diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index 75c3a7277c..489c55e415 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -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 */ diff --git a/servers/ldapd/main.c b/servers/ldapd/main.c index ca74d44b20..d263202120 100644 --- a/servers/ldapd/main.c +++ b/servers/ldapd/main.c @@ -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