s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h
[kai/samba.git] / source3 / libnet / libnet_dssync_passdb.c
index 768ca49d7ee8b21da7f4d74a1df522a60f5d8e35..7ef73d722e1ac828f711a5c23363ca9077c33de3 100644 (file)
@@ -23,7 +23,9 @@
 #include "../libcli/security/security.h"
 #include "../libds/common/flags.h"
 #include "../librpc/gen_ndr/ndr_drsuapi.h"
-#include "dbwrap.h"
+#include "util_tdb.h"
+#include "dbwrap/dbwrap.h"
+#include "dbwrap/dbwrap_rbt.h"
 #include "../libds/common/flag_mapping.h"
 #include "passdb.h"
 
@@ -105,7 +107,7 @@ static struct dssync_passdb_obj *dssync_search_obj_by_guid(struct dssync_passdb
        TDB_DATA key;
        TDB_DATA data;
 
-       key = make_tdb_data((const uint8_t *)(void *)guid,
+       key = make_tdb_data((const uint8_t *)(const void *)guid,
                             sizeof(*guid));
 
        ret = db->fetch(db, talloc_tos(), key, &data);