#include "common.h"
+#define _OLV_APP "ldapcompare"
+#define _OLV_STATIC
+#include "ol_version.h"
static int quiet = 0;
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 )
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 );
}