From 227130ee0ced777a9593d86f13159f6b24289bc5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 15 May 2008 14:34:21 +0200 Subject: net registry: refactor core of net_registry_getvalue() out into net_registry_getvalue_internal(), which takes a bool parameter "raw" controlling the output format. Michael (This used to be commit 889e19303e141e226898f837a637a2d591c75ad9) --- source3/utils/net_registry.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'source3/utils/net_registry.c') diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index a06a067ee3..73cbbaaa0d 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -263,8 +263,8 @@ done: return ret; } -static int net_registry_getvalue(struct net_context *c, int argc, - const char **argv) +static int net_registry_getvalue_internal(struct net_context *c, int argc, + const char **argv, bool raw) { WERROR werr; int ret = -1; @@ -291,7 +291,7 @@ static int net_registry_getvalue(struct net_context *c, int argc, goto done; } - print_registry_value(value, false); + print_registry_value(value, raw); ret = 0; @@ -300,6 +300,12 @@ done: return ret; } +static int net_registry_getvalue(struct net_context *c, int argc, + const char **argv) +{ + return net_registry_getvalue_internal(c, argc, argv, false); +} + static int net_registry_setvalue(struct net_context *c, int argc, const char **argv) { -- cgit