diff options
author | Michael Adam <obnox@samba.org> | 2008-01-20 01:15:31 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-20 02:03:40 +0100 |
commit | 8eed06fb8cc6db37d15ddc0f64744a536588ba29 (patch) | |
tree | 91e5e7d0245a4639a9b64387e587570d7fe948fb /source3 | |
parent | 949a88ee2f1163605a73a28920190c11c25e4609 (diff) | |
download | samba-8eed06fb8cc6db37d15ddc0f64744a536588ba29.tar.gz samba-8eed06fb8cc6db37d15ddc0f64744a536588ba29.tar.bz2 samba-8eed06fb8cc6db37d15ddc0f64744a536588ba29.zip |
Some reformatting in hkpt_params_fetch_values().
Michael
(This used to be commit f245c4e094ad56080847e286c76976f29c95a221)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_hkpt_params.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/source3/registry/reg_backend_hkpt_params.c b/source3/registry/reg_backend_hkpt_params.c index 0b962e10bd..2ed5e78e1c 100644 --- a/source3/registry/reg_backend_hkpt_params.c +++ b/source3/registry/reg_backend_hkpt_params.c @@ -39,19 +39,22 @@ static int hkpt_params_fetch_values(const char *key, REGVAL_CTR *regvals) /* This is ALMOST the same as perflib_009_params, but HKPT has a "Counters" entry instead of a "Counter" key. <Grrrr> */ - + base_index = reg_perfcount_get_base_index(); buffer_size = reg_perfcount_get_counter_names(base_index, &buffer); - regval_ctr_addvalue(regvals, "Counters", REG_MULTI_SZ, buffer, buffer_size); - - if(buffer_size > 0) + regval_ctr_addvalue(regvals, "Counters", REG_MULTI_SZ, buffer, + buffer_size); + + if(buffer_size > 0) { SAFE_FREE(buffer); - + } + buffer_size = reg_perfcount_get_counter_help(base_index, &buffer); regval_ctr_addvalue(regvals, "Help", REG_MULTI_SZ, buffer, buffer_size); - if(buffer_size > 0) + if(buffer_size > 0) { SAFE_FREE(buffer); - + } + return regval_ctr_numvals( regvals ); } |