summaryrefslogtreecommitdiff
path: root/source4/lib/registry/registry.i
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-23 20:56:41 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:04 -0600
commitd0ba9f001474bfee9b1e8fb516effab736cd4050 (patch)
tree1f4f21c4cf230e2438b1a9fac46eab7e7714b5e6 /source4/lib/registry/registry.i
parent3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4 (diff)
downloadsamba-d0ba9f001474bfee9b1e8fb516effab736cd4050.tar.gz
samba-d0ba9f001474bfee9b1e8fb516effab736cd4050.tar.bz2
samba-d0ba9f001474bfee9b1e8fb516effab736cd4050.zip
r26572: Fix warnings in the Python code.
(This used to be commit 15038d9586d0b58f301ca8c39c21ef10c4283f28)
Diffstat (limited to 'source4/lib/registry/registry.i')
-rw-r--r--source4/lib/registry/registry.i7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/registry/registry.i b/source4/lib/registry/registry.i
index 6f46e081c2..20ae671c75 100644
--- a/source4/lib/registry/registry.i
+++ b/source4/lib/registry/registry.i
@@ -26,6 +26,7 @@
#include "includes.h"
#include "registry.h"
#include "param/param.h"
+#include "hive.h"
typedef struct registry_context reg;
typedef struct hive_key hive_key;
@@ -102,16 +103,16 @@ typedef struct registry_context {
WERROR generate_diff(struct registry_context *ctx2, const struct reg_diff_callbacks *callbacks,
void *callback_data);
- WERROR mount_hive(struct hive_key *hive_key, uint32_t hkey_id,
+ WERROR mount_hive(struct hive_key *key, uint32_t hkey_id,
const char **elements=NULL);
struct registry_key *import_hive_key(struct hive_key *hive, uint32_t predef_key, const char **elements);
- WERROR mount_hive(struct hive_key *hive_key, const char *predef_name)
+ WERROR mount_hive(struct hive_key *key, const char *predef_name)
{
int i;
for (i = 0; reg_predefined_keys[i].name; i++) {
if (!strcasecmp(reg_predefined_keys[i].name, predef_name))
- return reg_mount_hive($self, hive_key,
+ return reg_mount_hive($self, key,
reg_predefined_keys[i].handle, NULL);
}
return WERR_INVALID_NAME;