summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_buffer.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-01 12:45:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:28 -0500
commit467ec2a32bac08468855a5a28a7d6e25b26904d5 (patch)
treebc04c0e4a90ad694699d78cfbac7b6671813aade /source3/rpc_parse/parse_buffer.c
parentfbd04d65c56c36bec287f6c4ffe84ea79b048fa7 (diff)
downloadsamba-467ec2a32bac08468855a5a28a7d6e25b26904d5.tar.gz
samba-467ec2a32bac08468855a5a28a7d6e25b26904d5.tar.bz2
samba-467ec2a32bac08468855a5a28a7d6e25b26904d5.zip
r17363: Some C++ warnings
(This used to be commit fd82f185a2e0f94bfb75f4eee072556ad94bf27d)
Diffstat (limited to 'source3/rpc_parse/parse_buffer.c')
-rw-r--r--source3/rpc_parse/parse_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_buffer.c b/source3/rpc_parse/parse_buffer.c
index 21dddfa3cf..5643189afe 100644
--- a/source3/rpc_parse/parse_buffer.c
+++ b/source3/rpc_parse/parse_buffer.c
@@ -319,7 +319,8 @@ BOOL smb_io_relarraystr(const char *desc, RPC_BUFFER *buffer, int depth, uint16
/* Yes this should be malloc not talloc. Don't change. */
- chaine.buffer = SMB_MALLOC((q-p+1)*sizeof(uint16));
+ chaine.buffer = (uint16 *)
+ SMB_MALLOC((q-p+1)*sizeof(uint16));
if (chaine.buffer == NULL)
return False;