From 3cc9e1a6a7c27da971ef9f3be7a21b1f7e671c15 Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Thu, 27 Jul 2000 08:00:25 +0000 Subject: remove warnings J.F. (This used to be commit 9178d2a1aac26f8d6533f7dc86ff9b19eb72db8b) --- source3/rpc_parse/parse_spoolss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/rpc_parse') diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index 9ec796d3e7..af946f376a 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -504,7 +504,7 @@ static BOOL spoolss_io_devmode(char *desc, prs_struct *ps, int depth, DEVICEMODE depth++; if (UNMARSHALLING(ps)) { - devmode->devicename.buffer = prs_alloc_mem(ps, 32 * sizeof(uint16) ); + devmode->devicename.buffer = (uint16 *)prs_alloc_mem(ps, 32 * sizeof(uint16) ); if (devmode->devicename.buffer == NULL) return False; } @@ -549,7 +549,7 @@ static BOOL spoolss_io_devmode(char *desc, prs_struct *ps, int depth, DEVICEMODE return False; if (UNMARSHALLING(ps)) { - devmode->formname.buffer = prs_alloc_mem(ps, 32 * sizeof(uint16) ); + devmode->formname.buffer = (uint16 *)prs_alloc_mem(ps, 32 * sizeof(uint16) ); if (devmode->formname.buffer == NULL) return False; } -- cgit