summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-08-30 11:33:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:26 -0500
commita206a5efdd4b75e78153a0b23a3d6e5a144ed42a (patch)
tree9ecccce4b9846fd39dadfd2d384e531873df0993
parent063078d92763e25935c704f24e1719e309249961 (diff)
downloadsamba-a206a5efdd4b75e78153a0b23a3d6e5a144ed42a.tar.gz
samba-a206a5efdd4b75e78153a0b23a3d6e5a144ed42a.tar.bz2
samba-a206a5efdd4b75e78153a0b23a3d6e5a144ed42a.zip
r9788: more compiler warnings from Jason Mader
(This used to be commit 9c51aa5bd2862d73663c4148eff3080341010405)
-rw-r--r--source3/rpc_server/srv_reg_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 7a5216ada5..07ebe4e20c 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -808,7 +808,7 @@ static WERROR reg_load_tree( REGF_FILE *regfile, const char *topkeypath,
for ( i=0; i<key->num_values; i++ ) {
regval_ctr_addvalue( values, key->values[i].valuename, key->values[i].type,
- key->values[i].data, (key->values[i].data_size & ~VK_DATA_IN_OFFSET) );
+ (char*)key->values[i].data, (key->values[i].data_size & ~VK_DATA_IN_OFFSET) );
}
/* copy subkeys into the REGSUBKEY_CTR */
@@ -1217,7 +1217,7 @@ WERROR _reg_set_value(pipes_struct *p, REG_Q_SET_VALUE *q_u, REG_R_SET_VALUE *r
fetch_reg_values( key, values );
- regval_ctr_addvalue( values, valuename, q_u->type, q_u->value.buffer, q_u->value.buf_len );
+ regval_ctr_addvalue( values, valuename, q_u->type, (char*)q_u->value.buffer, q_u->value.buf_len );
/* now write to the registry backend */