summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-05-24 22:19:17 +0200
committerMichael Adam <obnox@samba.org>2010-05-25 10:35:25 +0200
commit9ccf66379a946cef87d915c5f0f7758adb11a4d6 (patch)
tree3567c2325ce5526fa81c863c94efd54b22327cac /source3/utils
parent70a81796fca29d3e924ab6a9396b1a4ab344a730 (diff)
downloadsamba-9ccf66379a946cef87d915c5f0f7758adb11a4d6.tar.gz
samba-9ccf66379a946cef87d915c5f0f7758adb11a4d6.tar.bz2
samba-9ccf66379a946cef87d915c5f0f7758adb11a4d6.zip
s3:registry: adapt callers of regval_ctr_addvalue to uint8 * instead of char *
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_registry.c2
-rw-r--r--source3/utils/profiles.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index f03c346feb..2b2ed96f91 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -1047,7 +1047,7 @@ static bool write_registry_tree( REGF_FILE *infile, REGF_NK_REC *nk,
for ( i=0; i<nk->num_values; i++ ) {
regval_ctr_addvalue( values, nk->values[i].valuename, nk->values[i].type,
- (const char *)nk->values[i].data, (nk->values[i].data_size & ~VK_DATA_IN_OFFSET) );
+ nk->values[i].data, (nk->values[i].data_size & ~VK_DATA_IN_OFFSET) );
}
/* copy subkeys into the struct regsubkey_ctr */
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index e4ed8f50ec..5e2cd9a392 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -150,7 +150,7 @@ static bool copy_registry_tree( REGF_FILE *infile, REGF_NK_REC *nk,
for ( i=0; i<nk->num_values; i++ ) {
regval_ctr_addvalue( values, nk->values[i].valuename, nk->values[i].type,
- (const char *)nk->values[i].data, (nk->values[i].data_size & ~VK_DATA_IN_OFFSET) );
+ nk->values[i].data, (nk->values[i].data_size & ~VK_DATA_IN_OFFSET) );
}
/* copy subkeys into the struct regsubkey_ctr */