From bb4fb75b2216f9f58e8f8fad43bc39634148b315 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 21 Nov 2006 19:45:53 +0000 Subject: r19823: "log" is an internal define in older versions of gcc. Rename to log_ctx. Jeremy. (This used to be commit dbf0e58a1e7fa77ce0338104cf71c7a81214884b) --- source3/tdb/common/dump.c | 2 +- source3/tdb/common/open.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/tdb/common') diff --git a/source3/tdb/common/dump.c b/source3/tdb/common/dump.c index 70382ca949..3f5c2c87f5 100644 --- a/source3/tdb/common/dump.c +++ b/source3/tdb/common/dump.c @@ -40,7 +40,7 @@ static tdb_off_t tdb_dump_record(struct tdb_context *tdb, int hash, return 0; } - printf(" rec: hash=%d, offset=0x%08x next=0x%08x rec_len=%d " + printf(" rec: hash=%d offset=0x%08x next=0x%08x rec_len=%d " "key_len=%d data_len=%d full_hash=0x%x magic=0x%x\n", hash, offset, rec.next, rec.rec_len, rec.key_len, rec.data_len, rec.full_hash, rec.magic); diff --git a/source3/tdb/common/open.c b/source3/tdb/common/open.c index e1f21aa856..224103e679 100644 --- a/source3/tdb/common/open.c +++ b/source3/tdb/common/open.c @@ -372,9 +372,9 @@ int tdb_close(struct tdb_context *tdb) /* register a loging function */ void tdb_set_logging_function(struct tdb_context *tdb, - const struct tdb_logging_context *log) + const struct tdb_logging_context *log_ctx) { - tdb->log = *log; + tdb->log = *log_ctx; } void *tdb_get_logging_private(struct tdb_context *tdb) -- cgit