summaryrefslogtreecommitdiff
path: root/source4/lib/registry/common/reg_interface.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-09-08 12:41:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:35 -0500
commit9c69fe6522289c154505beea554426b0bf308e06 (patch)
tree58f0dfd61f956b9c6ed944a18827799ab5d1b299 /source4/lib/registry/common/reg_interface.c
parent3f7bf05f75c050c5132168b7eea6a346abfb482c (diff)
downloadsamba-9c69fe6522289c154505beea554426b0bf308e06.tar.gz
samba-9c69fe6522289c154505beea554426b0bf308e06.tar.bz2
samba-9c69fe6522289c154505beea554426b0bf308e06.zip
r2254: Fix a couple of compiler warnings...
(This used to be commit 8056f4a9a7f5065eeb3a3bec81977c5e4163bf8e)
Diffstat (limited to 'source4/lib/registry/common/reg_interface.c')
-rw-r--r--source4/lib/registry/common/reg_interface.c5
1 files changed, 2 insertions, 3 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);