From: Michael Adam Date: Fri, 4 Apr 2008 11:30:49 +0000 (+0200) Subject: net_rpc_registry: use utility function print_registry_value(). X-Git-Tag: samba-3.3.0pre1~2907 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d039b518f04b9dd3c87b9af2ec816e049554e27;p=thirdparty%2Fsamba.git net_rpc_registry: use utility function print_registry_value(). Michael --- diff --git a/source/utils/net_rpc_registry.c b/source/utils/net_rpc_registry.c index 7643a7920b5..89cb265550e 100644 --- a/source/utils/net_rpc_registry.c +++ b/source/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);