]> git.sur5r.net Git - openldap/commitdiff
Fix problems caused by lint removal
authorKurt Zeilenga <kurt@openldap.org>
Wed, 9 Jan 2002 18:18:36 +0000 (18:18 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 9 Jan 2002 18:18:36 +0000 (18:18 +0000)
servers/slapd/back-bdb/modrdn.c
servers/slapd/back-ldbm/modrdn.c
servers/slapd/back-monitor/conn.c
servers/slapd/back-passwd/search.c
servers/slapd/controls.c
servers/slapd/dn.c

index 252355faafb9ece45ef36eae1c4876c5b074e8d6..79e2e037b341fb20272fe3e3600340392d0aa20a 100644 (file)
@@ -418,7 +418,7 @@ retry:      /* transaction retry */
        /* 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,
@@ -433,7 +433,7 @@ retry:      /* transaction retry */
                "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,
index 25aa8104a6435ddd50b391ed0dd6519ee9f7e386..b752cd0107d5a5e553b2f5b7575aee77b3c53742 100644 (file)
@@ -496,7 +496,7 @@ ldbm_back_modrdn(
        /* 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
@@ -524,7 +524,7 @@ ldbm_back_modrdn(
 #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
index 0d32d0ca2a9972277f857a246a3816d6e357e095..a810637f4e1b8349c14b9e1d9647a62c871ddc5c 100644 (file)
@@ -404,7 +404,7 @@ monitor_subsys_conn_create(
               
                /* 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 );
index 8e985cf0f1108f4f95c8447539f3c5346bca0754..4366f32aa82d9ff80b4f6433881e4818754f4b8e 100644 (file)
@@ -90,8 +90,9 @@ passwd_back_search(
                        /* 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;
                        }
@@ -194,7 +195,9 @@ passwd_back_search(
                        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;
                }
index 3683e23bb5ffa889af3516f3b22e4bae6e46dfb1..0ac52e7884e52267789579e47d9c434e5ac55549 100644 (file)
@@ -90,7 +90,7 @@ int get_ctrls(
        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);
 
@@ -386,4 +386,4 @@ static int parseSubentries (
        op->o_subentries_visibility = (ctrl->ldctl_value.bv_val[2] != 0x00);
 
        return LDAP_SUCCESS;
-}
\ No newline at end of file
+}
index 52cbb6e8be93aabf48df95a86c9d2fc86c5db80b..de3ae7dbac2de9706811fba8ab8bf926f854c907 100644 (file)
@@ -646,7 +646,8 @@ dnParent(
        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;
        }
@@ -719,7 +720,7 @@ dnExtractRdn(
                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;
        }
@@ -758,7 +759,7 @@ dn_rdnlen(
                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;
@@ -904,7 +905,7 @@ rdn_attrs( const char * rdn, char ***types, char ***values)
        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;
        }
@@ -975,7 +976,7 @@ rdnValidate( struct berval *rdn )
        /*
         * 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;
        }