diff options
author | Michael Adam <obnox@samba.org> | 2011-08-25 00:42:10 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-11 14:17:57 +0200 |
commit | 43a13b55fc75c24a4a90c271d5ea6ea8f468b6cf (patch) | |
tree | d542e65815cd40b1f2a9ac3473a5d3b3ade1cd3a /source3 | |
parent | 608ac61729b96ed301524eb0cd64281fa68ec393 (diff) | |
download | samba-43a13b55fc75c24a4a90c271d5ea6ea8f468b6cf.tar.gz samba-43a13b55fc75c24a4a90c271d5ea6ea8f468b6cf.tar.bz2 samba-43a13b55fc75c24a4a90c271d5ea6ea8f468b6cf.zip |
s3:smbd: convert connections.c to use only dbrwap wrapper functions
Avoid direct use of the db_record and db_context structs.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/connection.c | 6 |
1 files 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); |