summaryrefslogtreecommitdiff
path: root/source4/lib/registry/common
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry/common')
-rw-r--r--source4/lib/registry/common/reg_interface.c5
-rw-r--r--source4/lib/registry/common/registry.h4
2 files changed, 4 insertions, 5 deletions
diff --git a/source4/lib/registry/common/reg_interface.c b/source4/lib/registry/common/reg_interface.c
index e7024d23fe..f0a6807558 100644
--- a/source4/lib/registry/common/reg_interface.c
+++ b/source4/lib/registry/common/reg_interface.c
@@ -30,9 +30,9 @@ static struct reg_init_function_entry *backends = NULL;
static struct reg_init_function_entry *reg_find_backend_entry(const char *name);
/* Register new backend */
-NTSTATUS registry_register(void *_function)
+NTSTATUS registry_register(const void *_function)
{
- struct registry_ops *functions = _function;
+ const struct registry_ops *functions = _function;
struct reg_init_function_entry *entry = backends;
if (!functions || !functions->name) {
@@ -97,7 +97,6 @@ WERROR reg_open(const char *backend, const char *location, const char *credentia
struct reg_init_function_entry *entry;
TALLOC_CTX *mem_ctx;
REG_HANDLE *ret;
- NTSTATUS status;
WERROR werr;
entry = reg_find_backend_entry(backend);
diff --git a/source4/lib/registry/common/registry.h b/source4/lib/registry/common/registry.h
index caa0e284bf..89d0ac6b14 100644
--- a/source4/lib/registry/common/registry.h
+++ b/source4/lib/registry/common/registry.h
@@ -123,7 +123,7 @@ struct registry_ops {
};
struct reg_handle_s {
- struct registry_ops *functions;
+ const struct registry_ops *functions;
char *location;
char *credentials;
void *backend_data;
@@ -132,7 +132,7 @@ struct reg_handle_s {
struct reg_init_function_entry {
/* Function to create a member of the pdb_methods list */
- struct registry_ops *functions;
+ const struct registry_ops *functions;
struct reg_init_function_entry *prev, *next;
};