diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/registry/reg_backend_ldb.c | 2 | ||||
-rw-r--r-- | source4/lib/registry/registry.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source4/lib/registry/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb.c index f4ed80fa7b..d723b1dbe4 100644 --- a/source4/lib/registry/reg_backend_ldb.c +++ b/source4/lib/registry/reg_backend_ldb.c @@ -39,7 +39,7 @@ static int ldb_free_hive (struct registry_hive *hive) return 0; } -static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, struct ldb_message *msg, char **name, uint32_t *type, DATA_BLOB *data) +static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, struct ldb_message *msg, const char **name, uint32_t *type, DATA_BLOB *data) { const struct ldb_val *val; *name = talloc_strdup(mem_ctx, ldb_msg_find_attr_as_string(msg, "value", NULL)); diff --git a/source4/lib/registry/registry.h b/source4/lib/registry/registry.h index 6b3675b0ee..e5cf7d9111 100644 --- a/source4/lib/registry/registry.h +++ b/source4/lib/registry/registry.h @@ -55,9 +55,9 @@ extern const struct reg_predefined_key reg_predefined_keys[]; /* structure to store the registry handles */ struct registry_key { - char *name; + const char *name; const char *path; - char *class_name; + const char *class_name; NTTIME last_mod; struct registry_hive *hive; void *backend_data; @@ -65,7 +65,7 @@ struct registry_key struct registry_value { - char *name; + const char *name; unsigned int data_type; DATA_BLOB data; }; @@ -156,7 +156,7 @@ struct reg_init_function_entry { struct reg_diff_value { - char *name; + const char *name; enum { REG_DIFF_DEL_VAL, REG_DIFF_SET_VAL } changetype; uint32_t type; DATA_BLOB data; @@ -164,7 +164,7 @@ struct reg_diff_value struct reg_diff_key { - char *name; + const char *name; enum { REG_DIFF_CHANGE_KEY, REG_DIFF_DEL_KEY } changetype; uint32_t numvalues; struct reg_diff_value *values; @@ -172,7 +172,7 @@ struct reg_diff_key struct reg_diff { - char *format; + const char *format; uint32_t numkeys; struct reg_diff_key *keys; }; |