1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib:ldb: Use C99 initializer for tdb_logging_context

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2018-12-13 11:35:25 +01:00 committed by Andreas Schneider
parent fb57c97ce4
commit 3cd5d4b397

View File

@ -157,7 +157,9 @@ static void emergency_walk(TDB_DATA key, TDB_DATA dbuf, void *keyname)
static int dump_tdb(const char *fname, struct ldb_dn *dn, bool emergency)
{
TDB_CONTEXT *tdb;
struct tdb_logging_context logfn = { log_stderr };
struct tdb_logging_context logfn = {
.log_fn = log_stderr,
};
tdb = tdb_open_ex(fname, 0, 0, O_RDONLY, 0, &logfn, NULL);
if (!tdb) {