]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapcompare.c
Add rules to patch current package name & version number into portable.h
[openldap] / clients / tools / ldapcompare.c
index b357c6d09a2c7a8f9bf23b4d01d115ffe3622146..c940dfcaffe34044f66351ddfd63b8aa1b01dcb6 100644 (file)
@@ -35,6 +35,9 @@
 
 #include "common.h"
 
+#define _OLV_APP       "ldapcompare"
+#define        _OLV_STATIC
+#include "ol_version.h"
 
 static int quiet = 0;
 
@@ -67,7 +70,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 +81,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 );
                }