diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-15 09:45:18 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-15 12:14:28 +0200 |
commit | 07d6c25525ca3b0d3a4e179f1048818f78cccf9d (patch) | |
tree | 9504d7eb0e456676206480873e2aa55e3fe51f73 | |
parent | 8b99d40520875ad89e14d9397cff902f8198fd25 (diff) | |
download | samba-07d6c25525ca3b0d3a4e179f1048818f78cccf9d.tar.gz samba-07d6c25525ca3b0d3a4e179f1048818f78cccf9d.tar.bz2 samba-07d6c25525ca3b0d3a4e179f1048818f78cccf9d.zip |
dbwrap: dbwrap_trans_change_int32_atomic->dbwrap_trans_change_int32_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/secrets.c | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index a354b3c04f..8831c4ca02 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -105,10 +105,10 @@ NTSTATUS dbwrap_change_int32_atomic_bystring(struct db_context *db, const char *keystr, int32_t *oldval, int32_t change_val); -NTSTATUS dbwrap_trans_change_int32_atomic(struct db_context *db, - const char *keystr, - int32_t *oldval, - int32_t change_val); +NTSTATUS dbwrap_trans_change_int32_atomic_bystring(struct db_context *db, + const char *keystr, + int32_t *oldval, + int32_t change_val); NTSTATUS dbwrap_trans_store(struct db_context *db, TDB_DATA key, TDB_DATA dbuf, int flag); NTSTATUS dbwrap_trans_delete(struct db_context *db, TDB_DATA key); diff --git a/lib/dbwrap/dbwrap_util.c b/lib/dbwrap/dbwrap_util.c index 684e608e09..1de53759f9 100644 --- a/lib/dbwrap/dbwrap_util.c +++ b/lib/dbwrap/dbwrap_util.c @@ -289,10 +289,10 @@ NTSTATUS dbwrap_change_int32_atomic_bystring(struct db_context *db, return ret; } -NTSTATUS dbwrap_trans_change_int32_atomic(struct db_context *db, - const char *keystr, - int32_t *oldval, - int32_t change_val) +NTSTATUS dbwrap_trans_change_int32_atomic_bystring(struct db_context *db, + const char *keystr, + int32_t *oldval, + int32_t change_val) { NTSTATUS ret; struct dbwrap_change_int32_atomic_context state; diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index 33a266c2af..83d3e72059 100644 --- a/source3/passdb/secrets.c +++ b/source3/passdb/secrets.c @@ -49,8 +49,8 @@ static void get_rand_seed(void *userdata, int *new_seed) { *new_seed = getpid(); if (db_ctx) { - dbwrap_trans_change_int32_atomic(db_ctx, "INFO/random_seed", - new_seed, 1); + dbwrap_trans_change_int32_atomic_bystring( + db_ctx, "INFO/random_seed", new_seed, 1); } } |