Eliminate htonl(unsigned_long_arg), which is wrong on 64-bit OSF1/alpha

This commit is contained in:
Hallvard Furuseth 1999-07-13 09:41:25 +00:00
parent 12b87ceebc
commit 2c27a6abcf

View 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 );