From: Pierangelo Masarati Date: Tue, 16 Sep 2008 14:10:02 +0000 (+0000) Subject: silence warnings X-Git-Tag: ACLCHECK_0~1345 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43ae03fc101c00215b213e0feb569784e19b13c3;p=openldap silence warnings --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index c5b42a5572..728b29201e 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -389,7 +389,6 @@ main( int argc, char *argv[] ) " new password expected", NULL, NULL, NULL ); } -skip: if( verbose || code != LDAP_SUCCESS || matcheddn || text || refs || ctrls ) { diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index aeb56d036a..a9c697e4f6 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -412,7 +412,7 @@ handle_private_option( int i ) exit( EXIT_FAILURE ); } keyp = cvalue; - while (keyp = strchr(keyp, '/')) { + while ( ( keyp = strchr(keyp, '/') ) != NULL ) { *keyp++ = ' '; } if ( ldap_create_sort_keylist( &sss_keys, cvalue )) { diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index cda6e86423..8588e88458 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -337,8 +337,7 @@ ldap_int_open_connection( int async ) { int rc = -1; - char *host; - int port, proto; + int proto; Debug( LDAP_DEBUG_TRACE, "ldap_int_open_connection\n", 0, 0, 0 );