From 43ae03fc101c00215b213e0feb569784e19b13c3 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 16 Sep 2008 14:10:02 +0000 Subject: [PATCH] silence warnings --- clients/tools/ldappasswd.c | 1 - clients/tools/ldapsearch.c | 2 +- libraries/libldap/open.c | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) 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 ); -- 2.39.5