summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_registry.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-05-09 23:22:12 +0200
committerKai Blin <kai@samba.org>2008-05-10 09:22:27 +0200
commitf5769109447d8da0f09b102d444a816ad97a00dc (patch)
treefe7b470486ace083b3f48a54334a3db0bb9633d2 /source3/utils/net_registry.c
parent378527215e663c0c9d36c565a16723e0a1979ea0 (diff)
downloadsamba-f5769109447d8da0f09b102d444a816ad97a00dc.tar.gz
samba-f5769109447d8da0f09b102d444a816ad97a00dc.tar.xz
samba-f5769109447d8da0f09b102d444a816ad97a00dc.zip
net: Remove globals
(This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
Diffstat (limited to 'source3/utils/net_registry.c')
-rw-r--r--source3/utils/net_registry.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 94a7d2d3594..89eadb50f97 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -115,7 +115,8 @@ done:
*
*/
-static int net_registry_enumerate(int argc, const char **argv)
+static int net_registry_enumerate(struct net_context *c, int argc,
+ const char **argv)
{
WERROR werr;
struct registry_key *key = NULL;
@@ -168,7 +169,8 @@ done:
return ret;
}
-static int net_registry_createkey(int argc, const char **argv)
+static int net_registry_createkey(struct net_context *c, int argc,
+ const char **argv)
{
WERROR werr;
enum winreg_CreateAction action;
@@ -221,7 +223,8 @@ done:
return ret;
}
-static int net_registry_deletekey(int argc, const char **argv)
+static int net_registry_deletekey(struct net_context *c, int argc,
+ const char **argv)
{
WERROR werr;
char *subkeyname;
@@ -260,7 +263,8 @@ done:
return ret;
}
-static int net_registry_getvalue(int argc, const char **argv)
+static int net_registry_getvalue(struct net_context *c, int argc,
+ const char **argv)
{
WERROR werr;
int ret = -1;
@@ -296,7 +300,8 @@ done:
return ret;
}
-static int net_registry_setvalue(int argc, const char **argv)
+static int net_registry_setvalue(struct net_context *c, int argc,
+ const char **argv)
{
WERROR werr;
struct registry_value value;
@@ -347,7 +352,8 @@ done:
return ret;
}
-static int net_registry_deletevalue(int argc, const char **argv)
+static int net_registry_deletevalue(struct net_context *c, int argc,
+ const char **argv)
{
WERROR werr;
struct registry_key *key = NULL;
@@ -380,7 +386,8 @@ done:
return ret;
}
-static int net_registry_getsd(int argc, const char **argv)
+static int net_registry_getsd(struct net_context *c, int argc,
+ const char **argv)
{
WERROR werr;
int ret = -1;
@@ -430,7 +437,7 @@ done:
return ret;
}
-int net_registry(int argc, const char **argv)
+int net_registry(struct net_context *c, int argc, const char **argv)
{
int ret = -1;
@@ -477,7 +484,7 @@ int net_registry(int argc, const char **argv)
return -1;
}
- ret = net_run_function2(argc, argv, "net registry", func);
+ ret = net_run_function2(c, argc, argv, "net registry", func);
return ret;
}