1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r18834: get the log context code right

(This used to be commit b6bb5d7b77)
This commit is contained in:
Andrew Tridgell 2006-09-23 01:59:48 +00:00 committed by Gerald (Jerry) Carter
parent f753f43d81
commit 45ca27699c

View File

@ -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