]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldappasswd.c
No anonymous unions.
[openldap] / clients / tools / ldappasswd.c
index 597d5d1ecbaf138c023b15df0f41006bcc4367bc..cf3aee05c025adaa87bfcf6c895f4ed817b133f1 100644 (file)
@@ -189,7 +189,7 @@ hash_crypt (const char *pw_in, Salt * salt)
                crypted_pw = crypt (pw_in, (char *)lsalt.salt);
                free (lsalt.salt);
        }
-       return (STRDUP (crypted_pw));
+       return (strdup (crypted_pw));
 }
 #endif
 
@@ -306,7 +306,7 @@ modify_dn (LDAP * ld, char *targetdn, char *pwattr, char *oldpw,
 
        strvals[0] = buf;
        strvals[1] = NULL;
-       mod.mod_vals.modv_strvals = strvals;
+       mod.mod_values = strvals;
        mod.mod_type = pwattr;
        mod.mod_op = LDAP_MOD_REPLACE;
        mods[0] = &mod;