diff options
author | Michael Adam <obnox@samba.org> | 2010-05-24 15:15:33 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-05-25 10:35:25 +0200 |
commit | 70a81796fca29d3e924ab6a9396b1a4ab344a730 (patch) | |
tree | 851005de6568fab50067725944e98320a8571bd9 /source3/registry | |
parent | f7f9ce30caa838f8408faa4bddcaebe2e266a0e4 (diff) | |
download | samba-70a81796fca29d3e924ab6a9396b1a4ab344a730.tar.gz samba-70a81796fca29d3e924ab6a9396b1a4ab344a730.tar.bz2 samba-70a81796fca29d3e924ab6a9396b1a4ab344a730.zip |
s3:registry: fix regval_ctr_addvalue() to take data as uint8 *, not char *.
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_objects.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c index b0d8da4227..52f2b6bbf1 100644 --- a/source3/registry/reg_objects.c +++ b/source3/registry/reg_objects.c @@ -453,7 +453,7 @@ struct regval_blob *regval_compose(TALLOC_CTX *ctx, const char *name, **********************************************************************/ int regval_ctr_addvalue(struct regval_ctr *ctr, const char *name, uint16 type, - const char *data_p, size_t size) + const uint8 *data_p, size_t size) { if ( !name ) return ctr->num_values; @@ -503,7 +503,7 @@ int regval_ctr_addvalue_sz(struct regval_ctr *ctr, const char *name, const char } return regval_ctr_addvalue(ctr, name, REG_SZ, - (const char *)blob.data, + (const uint8 *)blob.data, blob.length); } @@ -520,7 +520,7 @@ int regval_ctr_addvalue_multi_sz(struct regval_ctr *ctr, const char *name, const } return regval_ctr_addvalue(ctr, name, REG_MULTI_SZ, - (const char *)blob.data, + (const uint8 *)blob.data, blob.length); } @@ -532,7 +532,7 @@ int regval_ctr_copyvalue(struct regval_ctr *ctr, struct regval_blob *val) { if ( val ) { regval_ctr_addvalue(ctr, val->valuename, val->type, - (char *)val->data_p, val->size); + (uint8 *)val->data_p, val->size); } return ctr->num_values; |