mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
Remove some lint caused by the changes in const'ification
This commit is contained in:
parent
bc1cd95149
commit
22f993f89b
3 changed files with 15 additions and 5 deletions
|
|
@ -418,7 +418,9 @@ retry: /* transaction retry */
|
||||||
/* Get attribute type and attribute value of our new rdn, we will
|
/* Get attribute type and attribute value of our new rdn, we will
|
||||||
* need to add that to our new entry
|
* need to add that to our new entry
|
||||||
*/
|
*/
|
||||||
if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, &text, LDAP_DN_FORMAT_LDAP ) ) {
|
if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, &(char *)text,
|
||||||
|
LDAP_DN_FORMAT_LDAP ) )
|
||||||
|
{
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"bdb_modrdn: can't figure out type(s)/values(s) "
|
"bdb_modrdn: can't figure out type(s)/values(s) "
|
||||||
"of newrdn\n", 0, 0, 0 );
|
"of newrdn\n", 0, 0, 0 );
|
||||||
|
|
@ -431,7 +433,9 @@ retry: /* transaction retry */
|
||||||
"bdb_modrdn: new_rdn_type=\"%s\", new_rdn_val=\"%s\"\n",
|
"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 );
|
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, &text, LDAP_DN_FORMAT_LDAP ) ) {
|
if ( ldap_str2rdn( dn->bv_val, &old_rdn, &(char *)text,
|
||||||
|
LDAP_DN_FORMAT_LDAP ) )
|
||||||
|
{
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"bdb_back_modrdn: can't figure out the old_rdn "
|
"bdb_back_modrdn: can't figure out the old_rdn "
|
||||||
"type(s)/value(s)\n", 0, 0, 0 );
|
"type(s)/value(s)\n", 0, 0, 0 );
|
||||||
|
|
|
||||||
|
|
@ -496,7 +496,9 @@ ldbm_back_modrdn(
|
||||||
/* Get attribute types and values of our new rdn, we will
|
/* Get attribute types and values of our new rdn, we will
|
||||||
* need to add that to our new entry
|
* need to add that to our new entry
|
||||||
*/
|
*/
|
||||||
if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, &text, LDAP_DN_FORMAT_LDAP ) ) {
|
if ( ldap_str2rdn( newrdn->bv_val, &new_rdn, &(char *)text,
|
||||||
|
LDAP_DN_FORMAT_LDAP ) )
|
||||||
|
{
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
|
LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
|
||||||
"ldbm_back_modrdn: can't figure out type(s)/value(s) of newrdn\n" ));
|
"ldbm_back_modrdn: can't figure out type(s)/value(s) of newrdn\n" ));
|
||||||
|
|
@ -522,7 +524,9 @@ ldbm_back_modrdn(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Retrieve the old rdn from the entry's dn */
|
/* Retrieve the old rdn from the entry's dn */
|
||||||
if ( ldap_str2rdn( dn->bv_val, &old_rdn, &text, LDAP_DN_FORMAT_LDAP ) ) {
|
if ( ldap_str2rdn( dn->bv_val, &old_rdn, &(char *)text,
|
||||||
|
LDAP_DN_FORMAT_LDAP ) )
|
||||||
|
{
|
||||||
#ifdef NEW_LOGGING
|
#ifdef NEW_LOGGING
|
||||||
LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
|
LDAP_LOG(( "backend", LDAP_LEVEL_INFO,
|
||||||
"ldbm_back_modrdn: can't figure out the old_rdn type(s)/value(s).\n" ));
|
"ldbm_back_modrdn: can't figure out the old_rdn type(s)/value(s).\n" ));
|
||||||
|
|
|
||||||
|
|
@ -404,7 +404,9 @@ monitor_subsys_conn_create(
|
||||||
|
|
||||||
/* create exactly the required entry */
|
/* create exactly the required entry */
|
||||||
|
|
||||||
if ( ldap_str2rdn( ndn->bv_val, &values, &text, LDAP_DN_FORMAT_LDAP ) ) {
|
if ( ldap_str2rdn( ndn->bv_val, &values, &(char *)text,
|
||||||
|
LDAP_DN_FORMAT_LDAP ) )
|
||||||
|
{
|
||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue