X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fcldap.c;h=de6208136b3d5f89b6d1c0df4b3b531a6239c800;hb=91e24173d0fa168bdd3e585af2d56f3299a20c00;hp=dbe1abdae4e7fe022b07d2475476b720b0b99ad9;hpb=fb3b8e5ef165db2244dfb280cfd79f065e13460a;p=openldap diff --git a/libraries/libldap/cldap.c b/libraries/libldap/cldap.c index dbe1abdae4..de6208136b 100644 --- a/libraries/libldap/cldap.c +++ b/libraries/libldap/cldap.c @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file @@ -153,8 +154,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 ); @@ -503,8 +503,8 @@ cldap_parsemsg( LDAP *ld, int msgid, BerElement *ber, #ifdef LDAP_DEBUG if ( ldap_debug & LDAP_DEBUG_PACKETS ) { - fprintf( stderr, "cldap_parsemsg add message id %d type %d:\n", - ldm->lm_msgid, ldm->lm_msgtype ); + fprintf( stderr, "cldap_parsemsg add message id %ld type %ld:\n", + (long) ldm->lm_msgid, (long) ldm->lm_msgtype ); ber_log_dump( LDAP_DEBUG_BER, ldap_debug, ldm->lm_ber, 1 ); } #endif /* LDAP_DEBUG */