]> git.sur5r.net Git - openldap/commitdiff
int -> ber_socklen_t for getsockname()
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 10 Jun 2007 20:35:30 +0000 (20:35 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 10 Jun 2007 20:35:30 +0000 (20:35 +0000)
libraries/liblutil/sockpair.c

index c2e62200355b60e492a42924a6ad546871824bfd..308a758224b44be175b2d465b2634b2fb441f184 100644 (file)
@@ -35,7 +35,8 @@ int lutil_pair( ber_socket_t sds[2] )
        return pipe( sds );
 #else
        struct sockaddr_in si;
-       int rc, len = sizeof(si);
+       int rc;
+       ber_socklen_t len = sizeof(si);
        ber_socket_t sd;
 
        sd = socket( AF_INET, SOCK_DGRAM, 0 );