]> git.sur5r.net Git - openldap/commitdiff
Silence warnings in prev commit
authorHoward Chu <hyc@openldap.org>
Mon, 23 Jul 2007 00:02:31 +0000 (00:02 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 23 Jul 2007 00:02:31 +0000 (00:02 +0000)
servers/slapd/back-bdb/init.c

index b7214276586b999ea1cc37ff251e03e52e4b8d1b..bd17781998f7a670bb77ad7e4b5e499caf0d0d95 100644 (file)
@@ -456,8 +456,8 @@ shm_retry:
        if ( !e ) {
                e = entry_alloc();
                e->e_id = 0;
-               ber_dupbv( &e->e_name, &slap_empty_bv );
-               ber_dupbv( &e->e_nname, &slap_empty_bv );
+               ber_dupbv( &e->e_name, (struct berval *)&slap_empty_bv );
+               ber_dupbv( &e->e_nname, (struct berval *)&slap_empty_bv );
        }
        e->e_ocflags = SLAP_OC_GLUE|SLAP_OC__END;
        e->e_private = &bdb->bi_cache.c_dntree;