r17713: fix compiler warnings
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Aug 2006 18:50:03 +0000 (18:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:30 +0000 (14:16 -0500)
metze
(This used to be commit 21142ad7a2d37489e295d725c8700be0bb921091)

source4/lib/registry/reg_backend_ldb.c
source4/lib/registry/registry.h

index f4ed80fa7bb5ba2b3e4ad650c0007d40d9e927a7..d723b1dbe494b4f66e574ca6733225be8d79ec4b 100644 (file)
@@ -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));
index 6b3675b0ee7e10ab6ecc952a5d696bf4541ed0c9..e5cf7d911199ad82aeeef849c10d1aacbbe88bd5 100644 (file)
@@ -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;
 };