svn commit: samba r18834 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .

tridge at samba.org tridge at samba.org
Sat Sep 23 01:59:49 GMT 2006


Author: tridge
Date: 2006-09-23 01:59:48 +0000 (Sat, 23 Sep 2006)
New Revision: 18834

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18834

Log:

get the log context code right

Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb_wrap.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb_wrap.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb_wrap.c	2006-09-23 01:54:29 UTC (rev 18833)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb_wrap.c	2006-09-23 01:59:48 UTC (rev 18834)
@@ -122,11 +122,11 @@
 {
 	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



More information about the samba-cvs mailing list