From 5ab862aee770fe52b278ee112fc8f1e937121511 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 16 Jul 1999 18:43:10 +0000 Subject: [PATCH] Pass socklen_t* instead of int* to getsockopt, accept, getpeername, recvfrom --- clients/finger/main.c | 2 +- clients/gopher/go500.c | 2 +- clients/gopher/go500gw.c | 2 +- libraries/liblber/sockbuf.c | 2 +- libraries/libldap/os-ip.c | 2 +- servers/ldapd/main.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.5