From 0d234bd3c22b1a76f0892645e41dd1568735a150 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 28 Mar 2008 20:04:35 +0100 Subject: account_pol: use dbwrap_trans_store_uint32() metze (This used to be commit b1d63c8c1116f3429fb73aa6842105073385d1e8) --- source3/lib/account_pol.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c index 46fbc3b7c5..4e36760c4c 100644 --- a/source3/lib/account_pol.c +++ b/source3/lib/account_pol.c @@ -341,7 +341,6 @@ Set an account policy (in tdb) bool account_policy_set(int field, uint32 value) { const char *name; - uint32_t v_store; NTSTATUS status; if (!init_account_policy()) { @@ -354,12 +353,7 @@ bool account_policy_set(int field, uint32 value) return False; } - SIVAL(&v_store, 0, value); - - status = dbwrap_trans_store_bystring( - db, name, - make_tdb_data((const uint8 *)&v_store, sizeof(v_store)), - TDB_REPLACE); + status = dbwrap_trans_store_uint32(db, name, value); if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("store_uint32 failed for field %d (%s) on value " "%u: %s\n", field, name, value, nt_errstr(status))); -- cgit