diff options
author | Michael Adam <obnox@samba.org> | 2010-05-24 22:19:17 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-05-25 10:35:25 +0200 |
commit | 9ccf66379a946cef87d915c5f0f7758adb11a4d6 (patch) | |
tree | 3567c2325ce5526fa81c863c94efd54b22327cac /source3/printing | |
parent | 70a81796fca29d3e924ab6a9396b1a4ab344a730 (diff) | |
download | samba-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/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 5e5d1029cd..d3808d83aa 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3099,7 +3099,7 @@ static void map_dword_into_ctr(struct regval_ctr *ctr, const char *val_name, { regval_ctr_delvalue(ctr, val_name); regval_ctr_addvalue(ctr, val_name, REG_DWORD, - (char *) &dword, sizeof(dword)); + (uint8 *) &dword, sizeof(dword)); } static void map_bool_into_ctr(struct regval_ctr *ctr, const char *val_name, @@ -3108,7 +3108,7 @@ static void map_bool_into_ctr(struct regval_ctr *ctr, const char *val_name, uint8 bin_bool = (b ? 1 : 0); regval_ctr_delvalue(ctr, val_name); regval_ctr_addvalue(ctr, val_name, REG_BINARY, - (char *) &bin_bool, sizeof(bin_bool)); + (uint8 *) &bin_bool, sizeof(bin_bool)); } static void map_single_multi_sz_into_ctr(struct regval_ctr *ctr, const char *val_name, @@ -3701,7 +3701,7 @@ WERROR add_printer_data( NT_PRINTER_INFO_LEVEL_2 *p2, const char *key, const cha return WERR_NOMEM; regval_ctr_addvalue( p2->data->keys[key_index].values, value, - type, (const char *)data, real_len ); + type, data, real_len ); DEBUG(8,("add_printer_data: Added key => [%s], value => [%s], type=> [%d], size => [%d]\n", key, value, type, real_len )); @@ -3830,7 +3830,7 @@ static int unpack_values(NT_PRINTER_DATA *printer_data, const uint8 *buf, int bu /* add the value */ regval_ctr_addvalue( printer_data->keys[key_index].values, - valuename, type, (const char *)data_p, + valuename, type, data_p, size ); } |