mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
r18834: get the log context code right
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
c0684d0f26
commit
b6bb5d7b77
@ -122,11 +122,11 @@ struct tdb_context *ltdb_wrap_open(TALLOC_CTX *mem_ctx,
|
||||
{
|
||||
struct ltdb_wrap *w;
|
||||
struct stat st;
|
||||
#if (_SAMBA_BUILD_ <= 3)
|
||||
#if defined(_SAMBA_BUILD_) && (_SAMBA_BUILD_ <= 3)
|
||||
tdb_log_func log_ctx_p = ltdb_log_fn;
|
||||
#else
|
||||
struct tdb_logging_context log_ctx;
|
||||
struct tdb_logging_context log_ctx_p = &log_ctx;
|
||||
const struct tdb_logging_context *log_ctx_p = &log_ctx;
|
||||
log_ctx.log_fn = ltdb_log_fn;
|
||||
log_ctx.log_private = ldb;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user