]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapcompare.c
Add LDBM comment
[openldap] / clients / tools / ldapcompare.c
index b357c6d09a2c7a8f9bf23b4d01d115ffe3622146..18ea6efee7efa535efd181589a801297dab23932 100644 (file)
@@ -67,7 +67,8 @@ static int docompare LDAP_P((
        LDAPControl **cctrls));
 
 
-const char options[] = "z" "Cd:D:e:h:H:IkKMnO:p:P:QR:U:vw:WxX:y:Y:Z";
+const char options[] = "z"
+       "Cd:D:e:h:H:IkKMnO:p:P:QR:U:vVw:WxX:y:Y:Z";
 
 int
 handle_private_option( int i )
@@ -77,9 +78,9 @@ handle_private_option( int i )
                char    *control, *cvalue;
                int             crit;
        case 'E': /* compare controls */
-               if( version == LDAP_VERSION2 ) {
+               if( protocol == LDAP_VERSION2 ) {
                        fprintf( stderr, "%s: -E incompatible with LDAPv%d\n",
-                               prog, version );
+                               prog, protocol );
                        exit( EXIT_FAILURE );
                }