diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 18:40:31 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 11:18:35 +0200 |
commit | 058c4f84924c07b88ccaf3d617f3abff797a7cc8 (patch) | |
tree | c9ea7b1331a55fb73f832203dd9f643b7c216fd2 /source3/lib/eventlog | |
parent | 0e4c358e2710580d5aeb439d767c87aaf4c0f2f3 (diff) | |
download | samba-058c4f84924c07b88ccaf3d617f3abff797a7cc8.tar.gz samba-058c4f84924c07b88ccaf3d617f3abff797a7cc8.tar.bz2 samba-058c4f84924c07b88ccaf3d617f3abff797a7cc8.zip |
tdb_fetch_compat: use instead of tdb_fetch.
This is a noop for tdb1.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/lib/eventlog')
-rw-r--r-- | source3/lib/eventlog/eventlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/eventlog/eventlog.c b/source3/lib/eventlog/eventlog.c index 556938fe1d..b719c6f7f8 100644 --- a/source3/lib/eventlog/eventlog.c +++ b/source3/lib/eventlog/eventlog.c @@ -203,7 +203,7 @@ static bool make_way_for_eventlogs( TDB_CONTEXT * the_tdb, int32_t needed, /* read a record, add the amt to nbytes */ key.dsize = sizeof(int32_t); key.dptr = (unsigned char *)&i; - ret = tdb_fetch( the_tdb, key ); + ret = tdb_fetch_compat( the_tdb, key ); if ( ret.dsize == 0 ) { DEBUG( 8, ( "Can't find a record for the key, record [%d]\n", @@ -679,7 +679,7 @@ struct eventlog_Record_tdb *evlog_pull_record_tdb(TALLOC_CTX *mem_ctx, key.dptr = (unsigned char *)&srecno; key.dsize = sizeof(int32_t); - data = tdb_fetch(tdb, key); + data = tdb_fetch_compat(tdb, key); if (data.dsize == 0) { DEBUG(8,("evlog_pull_record_tdb: " "Can't find a record for the key, record %d\n", |