1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r17713: fix compiler warnings

metze
(This used to be commit 21142ad7a2)
This commit is contained in:
Stefan Metzmacher 2006-08-22 18:50:03 +00:00 committed by Gerald (Jerry) Carter
parent 31356c0283
commit 1cecad2522
2 changed files with 7 additions and 7 deletions

View 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));

View 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;
};