]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapwhoami.c
drop stored procedures
[openldap] / clients / tools / ldapwhoami.c
index 575e76a5d0c5335606fa1b7701c2988b80c3a11c..e97a8dca114616204b0faf9395c4136fd8e4c246 100644 (file)
@@ -212,8 +212,8 @@ main( int argc, char *argv[] )
                }
        }
 
-       if( verbose || ( rc != LDAP_SUCCESS ) || matcheddn || text || refs ) {
-               printf( _("Result: %s (%d)\n"), ldap_err2string( rc ), rc );
+       if( verbose || ( code != LDAP_SUCCESS ) || matcheddn || text || refs ) {
+               printf( _("Result: %s (%d)\n"), ldap_err2string( code ), code );
 
                if( text && *text ) {
                        printf( _("Additional info: %s\n"), text );
@@ -242,5 +242,5 @@ skip:
        tool_unbind( ld );
        tool_destroy();
 
-       return rc == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE;
+       return code == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE;
 }