]> git.sur5r.net Git - openldap/commitdiff
silence warnings
authorPierangelo Masarati <ando@openldap.org>
Tue, 16 Sep 2008 14:10:02 +0000 (14:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 16 Sep 2008 14:10:02 +0000 (14:10 +0000)
clients/tools/ldappasswd.c
clients/tools/ldapsearch.c
libraries/libldap/open.c

index c5b42a557289e1f3099ab20d9d8a7a38b10b369d..728b29201e3302f62d48ed3cf40764146bcf1a84 100644 (file)
@@ -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 )
        {
index aeb56d036ad20ea80e85d1d2d21b1fb0e6fc68eb..a9c697e4f61899a943e87870916478cea1a149b3 100644 (file)
@@ -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 )) {
index cda6e86423ad7fd766fb8bffb9187dfe8bfb78c6..8588e884580d84d371cdd33bdecda19a878fe134 100644 (file)
@@ -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 );