/* initialization of Datum structures */
#if defined( HAVE_BERKELEY_DB ) && (DB_VERSION_MAJOR >= 2)
LIBLDBM_F (void *) ldbm_malloc( size_t size );
-# define ldbm_datum_init(d) ((void)memset(&(d), 0, sizeof(Datum)))
+# define ldbm_datum_init(d) ((void)memset(&(d), '\0', sizeof(Datum)))
#else
# define ldbm_datum_init(d) ((void)0)
#endif /* HAVE_BERKELEY_DB */
} Filter;
/* compare routines can return undefined */
-#define SLAPD_COMPARE_UNDEFINED ((ber_tag_t) -1)
+#define SLAPD_COMPARE_UNDEFINED ((ber_int_t) -1)
/*
* represents an attribute (description + values)