X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=clients%2Ftools%2Fldapcompare.c;h=18ea6efee7efa535efd181589a801297dab23932;hb=626830b5adf4c048edc3ecd7c5cf48ab1fa8b495;hp=b357c6d09a2c7a8f9bf23b4d01d115ffe3622146;hpb=1fbbc1181152a32c1b9b82342ad6d63034ec7fbb;p=openldap diff --git a/clients/tools/ldapcompare.c b/clients/tools/ldapcompare.c index b357c6d09a..18ea6efee7 100644 --- a/clients/tools/ldapcompare.c +++ b/clients/tools/ldapcompare.c @@ -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 ); }