From 43a13b55fc75c24a4a90c271d5ea6ea8f468b6cf Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 25 Aug 2011 00:42:10 +0200 Subject: s3:smbd: convert connections.c to use only dbrwap wrapper functions Avoid direct use of the db_record and db_context structs. --- source3/smbd/connection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index cbb697c63f..5da2b08faa 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -41,7 +41,7 @@ bool yield_connection(connection_struct *conn, const char *name) return False; } - status = rec->delete_rec(rec); + status = dbwrap_record_delete(rec); if (!NT_STATUS_IS_OK(status)) { DEBUG( NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND) ? 3 : 0, ("deleting connection record returned %s\n", @@ -81,7 +81,7 @@ static int count_fn(struct db_record *rec, procid_str_static(&crec->pid), crec->cnum, crec->servicename)); - status = rec->delete_rec(rec); + status = dbwrap_record_delete(rec); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("count_fn: tdb_delete failed with error %s\n", nt_errstr(status))); @@ -175,7 +175,7 @@ bool claim_connection(connection_struct *conn, const char *name) dbuf.dptr = (uint8 *)&crec; dbuf.dsize = sizeof(crec); - status = rec->store(rec, dbuf, TDB_REPLACE); + status = dbwrap_record_store(rec, dbuf, TDB_REPLACE); TALLOC_FREE(rec); -- cgit