]> git.sur5r.net Git - openldap/commitdiff
Eliminate htonl(unsigned_long_arg), which is wrong on 64-bit OSF1/alpha
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 13 Jul 1999 09:41:25 +0000 (09:41 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 13 Jul 1999 09:41:25 +0000 (09:41 +0000)
libraries/libldap/cldap.c

index dbe1abdae4e7fe022b07d2475476b720b0b99ad9..42f30728514491e3647a005db0beaf91bab28654 100644 (file)
@@ -153,8 +153,7 @@ cldap_open( LDAP_CONST char *host, int port )
        }
        LDAP_FREE( host_dup );
     } else {
-       address = INADDR_LOOPBACK;
-       sock.sin_addr.s_addr = htonl( address );
+       sock.sin_addr.s_addr = htonl( INADDR_LOOPBACK );
        if ( add_addr( ld, (struct sockaddr *)&sock ) < 0 ) {
            ldap_ld_free( ld, 1, NULL, NULL );
            DO_RETURN( NULL );