]> git.sur5r.net Git - openldap/commitdiff
int -> ber_socklen_t for getsockopt()
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 10 Jun 2007 20:34:05 +0000 (20:34 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 10 Jun 2007 20:34:05 +0000 (20:34 +0000)
libraries/libldap/os-ip.c

index 60aa94ae3f18d0f15a80333571a03c6c805a618e..7859aa75e3061f0c0abf481c4c21b833589fb682 100644 (file)
@@ -316,7 +316,7 @@ ldap_int_poll(
                /* This means the connection failed */
                if ( FD_ISSET(s, &efds) ) {
                        int so_errno;
-                       int dummy = sizeof(so_errno);
+                       ber_socklen_t dummy = sizeof(so_errno);
                        if ( getsockopt( s, SOL_SOCKET, SO_ERROR,
                                (char *) &so_errno, &dummy ) == AC_SOCKET_ERROR || !so_errno )
                        {