summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2000-07-27 08:00:25 +0000
committerJean-François Micouleau <jfm@samba.org>2000-07-27 08:00:25 +0000
commit3cc9e1a6a7c27da971ef9f3be7a21b1f7e671c15 (patch)
tree3999067f2edcdf20d43e8935536a9ccf7bdc885f
parent642ae912566d4e4f60fc5d78aecce114d6e3a849 (diff)
downloadsamba-3cc9e1a6a7c27da971ef9f3be7a21b1f7e671c15.tar.gz
samba-3cc9e1a6a7c27da971ef9f3be7a21b1f7e671c15.tar.bz2
samba-3cc9e1a6a7c27da971ef9f3be7a21b1f7e671c15.zip
remove warnings
J.F. (This used to be commit 9178d2a1aac26f8d6533f7dc86ff9b19eb72db8b)
-rw-r--r--source3/rpc_parse/parse_spoolss.c4
1 files changed, 2 insertions, 2 deletions
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;
}