diff options
author | Michael Adam <obnox@samba.org> | 2008-01-20 01:30:38 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-20 02:03:39 +0100 |
commit | d48c5f15993c90635f4bb46f87245d9c244d7ddf (patch) | |
tree | fbb9512a91f975238256f0491697711824e2b37b /source3/registry | |
parent | 2e47997e6e433f915bcba6cd891857c15ea95a12 (diff) | |
download | samba-d48c5f15993c90635f4bb46f87245d9c244d7ddf.tar.gz |
Some reformatting in netlogon_params_fetch_values().
Michael
(This used to be commit 24f13fb72e4cbaba48235fa840b2a93bf1c5d9c3)
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_netlogon_params.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/registry/reg_backend_netlogon_params.c b/source3/registry/reg_backend_netlogon_params.c index d63cd6b31b5..71f88144c83 100644 --- a/source3/registry/reg_backend_netlogon_params.c +++ b/source3/registry/reg_backend_netlogon_params.c @@ -34,14 +34,15 @@ extern REGISTRY_OPS regdb_ops; static int netlogon_params_fetch_values(const char *key, REGVAL_CTR *regvals) { uint32 dwValue; - - if ( !pdb_get_account_policy(AP_REFUSE_MACHINE_PW_CHANGE, &dwValue) ) + + if (!pdb_get_account_policy(AP_REFUSE_MACHINE_PW_CHANGE, &dwValue)) { dwValue = 0; - - regval_ctr_addvalue( regvals, "RefusePasswordChange", REG_DWORD, - (char*)&dwValue, sizeof(dwValue) ); + } + + regval_ctr_addvalue(regvals, "RefusePasswordChange", REG_DWORD, + (char*)&dwValue, sizeof(dwValue)); - return regval_ctr_numvals( regvals ); + return regval_ctr_numvals(regvals); } static int netlogon_params_fetch_subkeys(const char *key, |