summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-04 13:30:49 +0200
committerMichael Adam <obnox@samba.org>2008-04-04 17:05:00 +0200
commit0bd2ac713068341a3b4e9461e4d422d4571c6474 (patch)
treed730a82fc922e86dcad36993d8395f69db517a6c /source3
parent2ce236cbaf605a6be05c6d0ffee2ba588f128a7e (diff)
downloadsamba-0bd2ac713068341a3b4e9461e4d422d4571c6474.tar.gz
samba-0bd2ac713068341a3b4e9461e4d422d4571c6474.tar.bz2
samba-0bd2ac713068341a3b4e9461e4d422d4571c6474.zip
net_rpc_registry: use utility function print_registry_value().
Michael (This used to be commit 3d039b518f04b9dd3c87b9af2ec816e049554e27)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_registry.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 7643a7920b..89cb265550 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -650,36 +650,7 @@ static NTSTATUS rpc_registry_enumerate_internal(const DOM_SID *domain_sid,
}
for (i=0; i<num_values; i++) {
- struct registry_value *v = values[i];
- d_printf("Valuename = %s\n", names[i]);
- d_printf("Type = %s\n",
- reg_type_lookup(v->type));
- switch(v->type) {
- case REG_DWORD:
- d_printf("Value = %d\n", v->v.dword);
- break;
- case REG_SZ:
- case REG_EXPAND_SZ:
- d_printf("Value = \"%s\"\n", v->v.sz.str);
- break;
- case REG_MULTI_SZ: {
- uint32 j;
- for (j = 0; j < v->v.multi_sz.num_strings; j++) {
- d_printf("Value[%3.3d] = \"%s\"\n", j,
- v->v.multi_sz.strings[j]);
- }
- break;
- }
- case REG_BINARY:
- d_printf("Value = %d bytes\n",
- (int)v->v.binary.length);
- break;
- default:
- d_printf("Value = <unprintable>\n");
- break;
- }
-
- d_printf("\n");
+ print_registry_value(names[i], values[i]);
}
rpccli_winreg_CloseKey(pipe_hnd, mem_ctx, &pol_key, NULL);