diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-15 09:20:25 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-15 12:14:28 +0200 |
commit | 9275d571d9d0bb4b7927245256aa4510b9e7c43d (patch) | |
tree | cba4b0e035c65cf1215306907c077a389e8b94a8 | |
parent | 37ad03f91d28c39533ece09384a12e63603c3e8a (diff) | |
download | samba-9275d571d9d0bb4b7927245256aa4510b9e7c43d.tar.gz samba-9275d571d9d0bb4b7927245256aa4510b9e7c43d.tar.bz2 samba-9275d571d9d0bb4b7927245256aa4510b9e7c43d.zip |
dbwrap: dbwrap_trans_change_uint32_atomic->dbwrap_trans_change_uint32_atomic_bystring
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | lib/dbwrap/dbwrap.h | 8 | ||||
-rw-r--r-- | lib/dbwrap/dbwrap_util.c | 8 | ||||
-rw-r--r-- | source3/passdb/pdb_tdb.c | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index 69683ca0f3..2417f2ca3a 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -97,10 +97,10 @@ NTSTATUS dbwrap_change_uint32_atomic_bystring(struct db_context *db, const char *keystr, uint32_t *oldval, uint32_t change_val); -NTSTATUS dbwrap_trans_change_uint32_atomic(struct db_context *db, - const char *keystr, - uint32_t *oldval, - uint32_t change_val); +NTSTATUS dbwrap_trans_change_uint32_atomic_bystring(struct db_context *db, + const char *keystr, + uint32_t *oldval, + uint32_t change_val); NTSTATUS dbwrap_change_int32_atomic(struct db_context *db, const char *keystr, int32_t *oldval, int32_t change_val); NTSTATUS dbwrap_trans_change_int32_atomic(struct db_context *db, diff --git a/lib/dbwrap/dbwrap_util.c b/lib/dbwrap/dbwrap_util.c index 2af170a10e..00fc562a1d 100644 --- a/lib/dbwrap/dbwrap_util.c +++ b/lib/dbwrap/dbwrap_util.c @@ -197,10 +197,10 @@ NTSTATUS dbwrap_change_uint32_atomic_bystring(struct db_context *db, return ret; } -NTSTATUS dbwrap_trans_change_uint32_atomic(struct db_context *db, - const char *keystr, - uint32_t *oldval, - uint32_t change_val) +NTSTATUS dbwrap_trans_change_uint32_atomic_bystring(struct db_context *db, + const char *keystr, + uint32_t *oldval, + uint32_t change_val) { NTSTATUS ret; struct dbwrap_change_uint32_atomic_context state; diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index e77ab8f1a7..8b923d6cd8 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -1118,8 +1118,8 @@ static bool tdbsam_new_rid(struct pdb_methods *methods, uint32 *prid) return false; } - status = dbwrap_trans_change_uint32_atomic(db_sam, NEXT_RID_STRING, - &rid, 1); + status = dbwrap_trans_change_uint32_atomic_bystring( + db_sam, NEXT_RID_STRING, &rid, 1); if (!NT_STATUS_IS_OK(status)) { DEBUG(3, ("tdbsam_new_rid: Failed to increase %s: %s\n", NEXT_RID_STRING, nt_errstr(status))); |