summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-02 13:00:02 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-02 13:09:18 +0100
commit0c3bc60a01a3353557abe42f6a689c54b9369e7f (patch)
treefcbf9e9a0e93c81c02771daeebd269c6673e1b37 /source4/lib
parent8249a467e365d7dc5eb52fd4c1315870405debb4 (diff)
downloadsamba-0c3bc60a01a3353557abe42f6a689c54b9369e7f.tar.gz
samba-0c3bc60a01a3353557abe42f6a689c54b9369e7f.tar.bz2
samba-0c3bc60a01a3353557abe42f6a689c54b9369e7f.zip
s4:lib/registry: s/new/nkey
metze
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/tools/regshell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c
index 8939f21269..0fc06d1219 100644
--- a/source4/lib/registry/tools/regshell.c
+++ b/source4/lib/registry/tools/regshell.c
@@ -159,12 +159,12 @@ static WERROR cmd_set(struct regshell_context *ctx, int argc, char **argv)
static WERROR cmd_ck(struct regshell_context *ctx, int argc, char **argv)
{
- struct registry_key *new = NULL;
+ struct registry_key *nkey = NULL;
WERROR error;
if(argc == 2) {
error = reg_open_key(ctx->registry, ctx->current, argv[1],
- &new);
+ &nkey);
if(!W_ERROR_IS_OK(error)) {
DEBUG(0, ("Error opening specified key: %s\n",
win_errstr(error)));
@@ -172,7 +172,7 @@ static WERROR cmd_ck(struct regshell_context *ctx, int argc, char **argv)
}
ctx->path = talloc_asprintf(ctx, "%s\\%s", ctx->path, argv[1]);
- ctx->current = new;
+ ctx->current = nkey;
}
printf("New path is: %s\n", ctx->path);