/* Get attribute type and attribute value of our new rdn, we will
* need to add that to our new entry
*/
- if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, &(char *)text,
+ if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, (char **)&text,
LDAP_DN_FORMAT_LDAP ) )
{
Debug( LDAP_DEBUG_TRACE,
"bdb_modrdn: new_rdn_type=\"%s\", new_rdn_val=\"%s\"\n",
new_rdn[0][0]->la_attr.bv_val, new_rdn[0][0]->la_value.bv_val, 0 );
- if ( ldap_str2rdn( dn->bv_val, &old_rdn, &(char *)text,
+ if ( ldap_str2rdn( dn->bv_val, &old_rdn, (char **)&text,
LDAP_DN_FORMAT_LDAP ) )
{
Debug( LDAP_DEBUG_TRACE,
/* Get attribute types and values of our new rdn, we will
* need to add that to our new entry
*/
- if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, &(char *)text,
+ if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, (char **)&text,
LDAP_DN_FORMAT_LDAP ) )
{
#ifdef NEW_LOGGING
#endif
/* Retrieve the old rdn from the entry's dn */
- if ( ldap_str2rdn( dn->bv_val, &old_rdn, &(char *)text,
+ if ( ldap_str2rdn( dn->bv_val, &old_rdn, (char **)&text,
LDAP_DN_FORMAT_LDAP ) )
{
#ifdef NEW_LOGGING
/* create exactly the required entry */
- if ( ldap_str2rdn( ndn->bv_val, &values, &(char *)text,
+ if ( ldap_str2rdn( ndn->bv_val, &values, (char **)&text,
LDAP_DN_FORMAT_LDAP ) )
{
return( -1 );
/* Use the first attribute of the DN
* as an attribute within the entry itself.
*/
- if( ldap_str2rdn( base->bv_val, &rdn, &text,
- LDAP_DN_FORMAT_LDAP ) ) {
+ if( ldap_str2rdn( base->bv_val, &rdn, (char **)&text,
+ LDAP_DN_FORMAT_LDAP ) )
+ {
err = LDAP_INVALID_DN_SYNTAX;
goto done;
}
goto done;
}
- if ( ldap_str2rdn( base->bv_val, &rdn, &text, LDAP_DN_FORMAT_LDAP )) {
+ if ( ldap_str2rdn( base->bv_val, &rdn, (char **)&text,
+ LDAP_DN_FORMAT_LDAP ))
+ {
err = LDAP_OPERATIONS_ERROR;
goto done;
}
LDAPControl ***ctrls = &op->o_ctrls;
struct slap_control *c;
int rc = LDAP_SUCCESS;
- char *errmsg = NULL;
+ const char *errmsg = NULL;
len = ber_pvt_ber_remaining(ber);
op->o_subentries_visibility = (ctrl->ldctl_value.bv_val[2] != 0x00);
return LDAP_SUCCESS;
-}
\ No newline at end of file
+}
const char *p;
int rc;
- rc = ldap_str2rdn( dn, NULL, & (char *) p, LDAP_DN_FORMAT_LDAP | LDAP_DN_SKIP );
+ rc = ldap_str2rdn( dn, NULL, (char **)&p,
+ LDAP_DN_FORMAT_LDAP | LDAP_DN_SKIP );
if ( rc != LDAP_SUCCESS ) {
return rc;
}
return LDAP_OTHER;
}
- rc = ldap_str2rdn( dn->bv_val, &tmpRDN, &(char *)p, LDAP_DN_FORMAT_LDAP );
+ rc = ldap_str2rdn( dn->bv_val, &tmpRDN, (char **)&p, LDAP_DN_FORMAT_LDAP );
if ( rc != LDAP_SUCCESS ) {
return rc;
}
return 0;
}
- rc = ldap_str2rdn( dn_in->bv_val, NULL, &(char *)p,
+ rc = ldap_str2rdn( dn_in->bv_val, NULL, (char **)&p,
LDAP_DN_FORMAT_LDAP | LDAP_DN_SKIP );
if ( rc != LDAP_SUCCESS ) {
return 0;
assert( *values == NULL );
assert( types == NULL || *types == NULL );
- rc = ldap_str2rdn( rdn, &tmpRDN, &(char *)p, LDAP_DN_FORMAT_LDAP );
+ rc = ldap_str2rdn( rdn, &tmpRDN, (char **)&p, LDAP_DN_FORMAT_LDAP );
if ( rc != LDAP_SUCCESS ) {
return rc;
}
/*
* must be parsable
*/
- rc = ldap_str2rdn( rdn, &RDN, &p, LDAP_DN_FORMAT_LDAP );
+ rc = ldap_str2rdn( rdn, &RDN, (char **)&p, LDAP_DN_FORMAT_LDAP );
if ( rc != LDAP_SUCCESS ) {
return 0;
}