summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-15 14:34:21 +0200
committerMichael Adam <obnox@samba.org>2008-05-15 17:17:55 +0200
commit227130ee0ced777a9593d86f13159f6b24289bc5 (patch)
treed0b755d545e01e77ec2e918cdf924da8bc2265fb
parent49835c6d9e5b838484e6e806b80d8acb7ef2ef5a (diff)
downloadsamba-227130ee0ced777a9593d86f13159f6b24289bc5.tar.gz
samba-227130ee0ced777a9593d86f13159f6b24289bc5.tar.bz2
samba-227130ee0ced777a9593d86f13159f6b24289bc5.zip
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)
-rw-r--r--source3/utils/net_registry.c12
1 files changed, 9 insertions, 3 deletions
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)
{