]> git.sur5r.net Git - openldap/commitdiff
Pass socklen_t* instead of int* to getsockopt, accept, getpeername, recvfrom
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 16 Jul 1999 18:43:10 +0000 (18:43 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 16 Jul 1999 18:43:10 +0000 (18:43 +0000)
clients/finger/main.c
clients/gopher/go500.c
clients/gopher/go500gw.c
libraries/liblber/sockbuf.c
libraries/libldap/os-ip.c
servers/ldapd/main.c

index d172380fad0405397468c8a91f5997b2d934d9b9..19e72277df6949e02b7e7d44f7594dcb46357a40 100644 (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;
index 323b9fbe42a038f832ff3663df90f8ccd38a7793..3d95f4d6f3ab505d141d9b44d442f330f6696975 100644 (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 */
index 9f8935fcd57f30a0a47888a24023b02559ea4fcc..46c69cbe1cf2499eb1448f9969f9f26631e2b0c0 100644 (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 */
index 123692dedaa8001675b1d90e0dd1f6395e71d92c..b81235b9462f76001299f14b3904d88b581499b6 100644 (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 );
index 75c3a7277c154247ea1608981ae42b6004da12ec..489c55e415f8f6bdd13f426ad1cf958f0f3a1e6d 100644 (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 */
index ca74d44b20bac3ffe1e20b7356fa99ddd00ae928..d2632021209092e18621d13e9909533270778e71 100644 (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