diff options
Diffstat (limited to 'source3/tdb/common')
-rw-r--r-- | source3/tdb/common/dump.c | 2 | ||||
-rw-r--r-- | source3/tdb/common/open.c | 4 |
2 files changed, 3 insertions, 3 deletions
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) |