]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/index.c
Code clean-up.
[openldap] / servers / slapd / back-ldbm / index.c
index 18279f214351b8dfabdddc3fd358abf5ac956311..0d595119c693d912dc4be00fc6fc9b95af80d9e2 100644 (file)
@@ -111,7 +111,7 @@ index_read(
        if ( ! (indextype & indexmask) ) {
                idl =  idl_allids( be );
                Debug( LDAP_DEBUG_TRACE,
-                   "<= index_read %lu candidates (allids - not indexed)\n",
+                   "<= index_read %ld candidates (allids - not indexed)\n",
                    idl ? ID_BLOCK_NIDS(idl) : 0, 0, 0 );
                return( idl );
        }
@@ -151,7 +151,7 @@ index_read(
 
        ldbm_cache_close( be, db );
 
-       Debug( LDAP_DEBUG_TRACE, "<= index_read %lu candidates\n",
+       Debug( LDAP_DEBUG_TRACE, "<= index_read %ld candidates\n",
            idl ? ID_BLOCK_NIDS(idl) : 0, 0, 0 );
        return( idl );
 }
@@ -179,9 +179,6 @@ add_value(
 
        Debug( LDAP_DEBUG_TRACE, "=> add_value( \"%c%s\" )\n", prefix, val, 0 );
 
-       realval = val;
-       tmpval = NULL;
-
        if ( prefix != UNKNOWN_PREFIX ) {
               unsigned int     len = strlen( val );