summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-28 20:04:35 +0100
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:23 +0200
commit0d234bd3c22b1a76f0892645e41dd1568735a150 (patch)
treea408de8bc4bdc5ff84e67695118aab36339e27ec /source3/lib
parent9aa8d0c627773c1509b2beb1cf007a52c57d233e (diff)
downloadsamba-0d234bd3c22b1a76f0892645e41dd1568735a150.tar.gz
samba-0d234bd3c22b1a76f0892645e41dd1568735a150.tar.bz2
samba-0d234bd3c22b1a76f0892645e41dd1568735a150.zip
account_pol: use dbwrap_trans_store_uint32()
metze (This used to be commit b1d63c8c1116f3429fb73aa6842105073385d1e8)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/account_pol.c8
1 files changed, 1 insertions, 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)));