summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_w95.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-13 17:28:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:08 -0500
commit5d2c2edc19d471cb2b757c53eeb007f4dd7f9348 (patch)
tree1c9ce50855160f7dc9fc2cf9da509fe870d1c96c /source4/lib/registry/reg_backend_w95.c
parent45f760973d9b5c0663608e779eb337c0648e9313 (diff)
downloadsamba-5d2c2edc19d471cb2b757c53eeb007f4dd7f9348.tar.gz
samba-5d2c2edc19d471cb2b757c53eeb007f4dd7f9348.tar.bz2
samba-5d2c2edc19d471cb2b757c53eeb007f4dd7f9348.zip
r10207: Add some const
(This used to be commit b1ad340b4720e922ae1e332c2a74986b1656358b)
Diffstat (limited to 'source4/lib/registry/reg_backend_w95.c')
-rw-r--r--source4/lib/registry/reg_backend_w95.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/reg_backend_w95.c b/source4/lib/registry/reg_backend_w95.c
index 03460052da..d5ce0e33f8 100644
--- a/source4/lib/registry/reg_backend_w95.c
+++ b/source4/lib/registry/reg_backend_w95.c
@@ -267,7 +267,7 @@ static WERROR w95_open_reg (struct registry_hive *h, struct registry_key **root)
return WERR_OK;
}
-static WERROR w95_get_subkey_by_index (TALLOC_CTX *mem_ctx, struct registry_key *parent, int n, struct registry_key **key)
+static WERROR w95_get_subkey_by_index (TALLOC_CTX *mem_ctx, const struct registry_key *parent, int n, struct registry_key **key)
{
CREG *creg = parent->hive->backend_data;
RGKN_KEY *rgkn_key = parent->backend_data;
@@ -303,7 +303,7 @@ static WERROR w95_get_subkey_by_index (TALLOC_CTX *mem_ctx, struct registry_key
return WERR_NO_MORE_ITEMS;
}
-static WERROR w95_num_values(struct registry_key *k, uint32_t *count)
+static WERROR w95_num_values(const struct registry_key *k, uint32_t *count)
{
RGKN_KEY *rgkn_key = k->backend_data;
RGDB_KEY *rgdb_key = LOCN_RGDB_KEY((CREG *)k->hive->backend_data, rgkn_key->id.rgdb, rgkn_key->id.id);
@@ -315,7 +315,7 @@ static WERROR w95_num_values(struct registry_key *k, uint32_t *count)
return WERR_OK;
}
-static WERROR w95_get_value_by_id(TALLOC_CTX *mem_ctx, struct registry_key *k, int idx, struct registry_value **value)
+static WERROR w95_get_value_by_id(TALLOC_CTX *mem_ctx, const struct registry_key *k, int idx, struct registry_value **value)
{
RGKN_KEY *rgkn_key = k->backend_data;
DWORD i;