From 1d9ff7d3bc111f83f8ae45277c0507c4306c0c01 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 15 Jun 2012 09:51:21 +0200 Subject: dbwrap: dbwrap_trans_store_uint32->dbwrap_trans_store_uint32_bystring Signed-off-by: Michael Adam Autobuild-User(master): Michael Adam Autobuild-Date(master): Fri Jun 15 14:20:04 CEST 2012 on sn-devel-104 --- lib/dbwrap/dbwrap.h | 5 +++-- lib/dbwrap/dbwrap_util.c | 5 +++-- source3/passdb/account_pol.c | 2 +- source3/utils/dbwrap_tool.c | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index bf172d22cd..41bcf357eb 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -115,8 +115,9 @@ NTSTATUS dbwrap_trans_delete(struct db_context *db, TDB_DATA key); NTSTATUS dbwrap_trans_store_int32_bystring(struct db_context *db, const char *keystr, int32_t v); -NTSTATUS dbwrap_trans_store_uint32(struct db_context *db, const char *keystr, - uint32_t v); +NTSTATUS dbwrap_trans_store_uint32_bystring(struct db_context *db, + const char *keystr, + uint32_t v); NTSTATUS dbwrap_trans_store_bystring(struct db_context *db, const char *key, TDB_DATA data, int flags); NTSTATUS dbwrap_trans_delete_bystring(struct db_context *db, const char *key); diff --git a/lib/dbwrap/dbwrap_util.c b/lib/dbwrap/dbwrap_util.c index 15736b351a..8e6498d7d0 100644 --- a/lib/dbwrap/dbwrap_util.c +++ b/lib/dbwrap/dbwrap_util.c @@ -394,8 +394,9 @@ NTSTATUS dbwrap_trans_store_int32_bystring(struct db_context *db, TDB_REPLACE); } -NTSTATUS dbwrap_trans_store_uint32(struct db_context *db, const char *keystr, - uint32_t v) +NTSTATUS dbwrap_trans_store_uint32_bystring(struct db_context *db, + const char *keystr, + uint32_t v) { uint32_t v_store; diff --git a/source3/passdb/account_pol.c b/source3/passdb/account_pol.c index fa2252f1a7..c94df2961a 100644 --- a/source3/passdb/account_pol.c +++ b/source3/passdb/account_pol.c @@ -375,7 +375,7 @@ bool account_policy_set(enum pdb_policy_type type, uint32_t value) return False; } - status = dbwrap_trans_store_uint32(db, name, value); + status = dbwrap_trans_store_uint32_bystring(db, name, value); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("store_uint32 failed for type %d (%s) on value " "%u: %s\n", type, name, value, nt_errstr(status))); diff --git a/source3/utils/dbwrap_tool.c b/source3/utils/dbwrap_tool.c index 72e70690bf..eb28902f55 100644 --- a/source3/utils/dbwrap_tool.c +++ b/source3/utils/dbwrap_tool.c @@ -154,7 +154,7 @@ static int dbwrap_tool_store_uint32(struct db_context *db, NTSTATUS status; uint32_t value = (uint32_t)strtol(data, NULL, 10); - status = dbwrap_trans_store_uint32(db, keyname, value); + status = dbwrap_trans_store_uint32_bystring(db, keyname, value); if (!NT_STATUS_IS_OK(status)) { d_fprintf(stderr, -- cgit