diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-08-22 18:50:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:30 -0500 |
commit | 1cecad25224a13de3b561ae36b8e530b152c81be (patch) | |
tree | 6322d21b17cb2ced45ae5db0587330269e63b9e3 /source4/lib/registry | |
parent | 31356c02838a678013f0ad9416f0b101b755bd90 (diff) | |
download | samba-1cecad25224a13de3b561ae36b8e530b152c81be.tar.gz samba-1cecad25224a13de3b561ae36b8e530b152c81be.tar.bz2 samba-1cecad25224a13de3b561ae36b8e530b152c81be.zip |
r17713: fix compiler warnings
metze
(This used to be commit 21142ad7a2d37489e295d725c8700be0bb921091)
Diffstat (limited to 'source4/lib/registry')
-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; }; |