]> git.sur5r.net Git - openldap/blobdiff - clients/ud/edit.c
Fix format %x -> %lx in des_string_to_key
[openldap] / clients / ud / edit.c
index 8bdab14f9d77ed19583c56e3a314109806073b82..3cc1530d9bdebc507f90bba09d27036f834d8662 100644 (file)
@@ -13,7 +13,8 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
+
+#include <ac/stdlib.h>
 
 #include <ac/signal.h>
 #include <ac/string.h>
@@ -31,7 +32,7 @@
 
 #include <lber.h>
 #include <ldap.h>
-#include <ldapconfig.h>
+#include <ldap_defaults.h>
 #include "ud.h"
 
 static int  load_editor( void );
@@ -93,7 +94,7 @@ edit( char *who )
        }
        dn = ldap_get_dn(ld, ldap_first_entry(ld, mp));
        rdns = ldap_explode_dn(dn, TRUE);
-       Free(dn);
+       ldap_memfree(dn);
        if (verbose) {
                printf("\n  Editing directory entry \"%s\"...\n", *rdns);
        }