diff options
author | Michael Adam <obnox@samba.org> | 2011-08-25 10:39:53 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-11 14:17:56 +0200 |
commit | c8924ecc41db8da01d2918c9b82abc2cfce4351f (patch) | |
tree | 8bcb8d0ab1a8a8f390747fcc42e58c1e4e7b97f6 /source3/utils | |
parent | 85ae3c3fd46a1ac6f55cb47a7fc4f83b9d53b3cf (diff) | |
download | samba-c8924ecc41db8da01d2918c9b82abc2cfce4351f.tar.gz samba-c8924ecc41db8da01d2918c9b82abc2cfce4351f.tar.bz2 samba-c8924ecc41db8da01d2918c9b82abc2cfce4351f.zip |
s3:net: convert net serverid to only use dbwrap wrapper functions
Avoid direct use of the db_record and db_context structs.
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_serverid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_serverid.c b/source3/utils/net_serverid.c index 308a7858a9..31322e27e7 100644 --- a/source3/utils/net_serverid.c +++ b/source3/utils/net_serverid.c @@ -49,7 +49,7 @@ static int net_serverid_wipe_fn(struct db_record *rec, if (id->vnn != get_my_vnn()) { return 0; } - status = rec->delete_rec(rec); + status = dbwrap_record_delete(rec); if (!NT_STATUS_IS_OK(status)) { char *str = server_id_str(talloc_tos(), id); DEBUG(1, ("Could not delete serverid.tdb record %s: %s\n", @@ -77,7 +77,7 @@ static int net_serverid_wipedbs_conn( DEBUG(10, ("Deleting connections.tdb record for pid %s\n", server_id_str(talloc_tos(), &key->pid))); - status = rec->delete_rec(rec); + status = dbwrap_record_delete(rec); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("Could not delete connections.tdb record " "for pid %s: %s\n", @@ -99,7 +99,7 @@ static int net_serverid_wipedbs_sessionid(struct db_record *rec, DEBUG(10, ("Deleting sessionid.tdb record for pid %s\n", server_id_str(talloc_tos(), &session->pid))); - status = rec->delete_rec(rec); + status = dbwrap_record_delete(rec); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("Could not delete session.tdb record " "for pid %s: %s\n", |