From 0bd2ac713068341a3b4e9461e4d422d4571c6474 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 4 Apr 2008 13:30:49 +0200 Subject: net_rpc_registry: use utility function print_registry_value(). Michael (This used to be commit 3d039b518f04b9dd3c87b9af2ec816e049554e27) --- source3/utils/net_rpc_registry.c | 31 +------------------------------ 1 file changed, 1 insertion(+), 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; itype)); - 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 = \n"); - break; - } - - d_printf("\n"); + print_registry_value(names[i], values[i]); } rpccli_winreg_CloseKey(pipe_hnd, mem_ctx, &pol_key, NULL); -- cgit