diff options
author | Herb Lewis <herb@samba.org> | 2003-08-15 04:42:05 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2003-08-15 04:42:05 +0000 |
commit | aa39cc37dab9c4f8c3295d872bb8cc143890b378 (patch) | |
tree | 49adb72109be61b3b3e9c1a77c291a0615ecc536 /source3/printing | |
parent | 48ceb1b0685f193a1bc95d73401aa48561763dfb (diff) | |
download | samba-aa39cc37dab9c4f8c3295d872bb8cc143890b378.tar.gz samba-aa39cc37dab9c4f8c3295d872bb8cc143890b378.tar.bz2 samba-aa39cc37dab9c4f8c3295d872bb8cc143890b378.zip |
get rid of more compiler warnings
(This used to be commit 398bd14fc6e2f8ab2f34211270e179b8928a6669)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 2596d99815..9ac5d2b744 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2930,7 +2930,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, data, real_len ); + type, (const char *)data, real_len ); DEBUG(8,("add_printer_data: Added key => [%s], value => [%s], type=> [%d], size => [%d]\n", key, value, type, real_len )); @@ -3023,7 +3023,7 @@ static int unpack_values(NT_PRINTER_DATA *printer_data, char *buf, int buflen) /* add the new value */ - regval_ctr_addvalue( &printer_data->keys[key_index].values, valuename, type, data_p, size ); + regval_ctr_addvalue( &printer_data->keys[key_index].values, valuename, type, (const char *)data_p, size ); SAFE_FREE(data_p); /* 'B' option to tdbpack does a malloc() */ |