From 7b42ceb414d3e14c411dd95dcd0b200113fe1191 Mon Sep 17 00:00:00 2001 From: Ira Cooper Date: Thu, 5 Jan 2012 17:13:27 -0800 Subject: Fix compile when TDB_TRACE is enabled. Autobuild-User: Jeremy Allison Autobuild-Date: Fri Jan 6 04:16:41 CET 2012 on sn-devel-104 --- lib/tdb/common/tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c index c0f934ab83..fc1f5608fa 100644 --- a/lib/tdb/common/tdb.c +++ b/lib/tdb/common/tdb.c @@ -1003,7 +1003,7 @@ bool tdb_write_all(int fd, const void *buf, size_t count) #ifdef TDB_TRACE static void tdb_trace_write(struct tdb_context *tdb, const char *str) { - if (!tdb_write_alltdb->tracefd, str, strlen(str)) { + if (!tdb_write_all(tdb->tracefd, str, strlen(str))) { close(tdb->tracefd); tdb->tracefd = -1; } -- cgit