diff options
-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); } } |