diff options
author | Jeremy Allison <jra@samba.org> | 2000-12-18 07:24:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-12-18 07:24:48 +0000 |
commit | b578b4da5d3170e57957fa3ddfb40c60d5935847 (patch) | |
tree | 5401da7ccb4a90bac99f39a1e2a1c1e5115bfb9b /source3 | |
parent | 667b4113a8aa6c04b72da139e26448602eeee83c (diff) | |
download | samba-b578b4da5d3170e57957fa3ddfb40c60d5935847.tar.gz samba-b578b4da5d3170e57957fa3ddfb40c60d5935847.tar.bz2 samba-b578b4da5d3170e57957fa3ddfb40c60d5935847.zip |
Cast prs_alloc_mem to correct type.
Jeremy.
(This used to be commit e0931cda809e4bb48bd97cad6d7ab5fb6dc53eb2)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_parse/parse_srv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c index 69cc1e7bda..c572d881d6 100644 --- a/source3/rpc_parse/parse_srv.c +++ b/source3/rpc_parse/parse_srv.c @@ -291,7 +291,7 @@ static BOOL srv_io_srv_share_ctr(char *desc, SRV_SHARE_INFO_CTR *ctr, prs_struct int i; if (UNMARSHALLING(ps)) { - if (!(info1 = prs_alloc_mem(ps, num_entries * sizeof(SRV_SHARE_INFO_1)))) + if (!(info1 = (SRV_SHARE_INFO_1 *)prs_alloc_mem(ps, num_entries * sizeof(SRV_SHARE_INFO_1)))) return False; memset(info1, '\0', num_entries * sizeof(SRV_SHARE_INFO_1)); ctr->share.info1 = info1; @@ -317,7 +317,7 @@ static BOOL srv_io_srv_share_ctr(char *desc, SRV_SHARE_INFO_CTR *ctr, prs_struct int i; if (UNMARSHALLING(ps)) { - if (!(info2 = prs_alloc_mem(ps,num_entries * sizeof(SRV_SHARE_INFO_2)))) + if (!(info2 = (SRV_SHARE_INFO_2 *)prs_alloc_mem(ps,num_entries * sizeof(SRV_SHARE_INFO_2)))) return False; memset(info2, '\0', num_entries * sizeof(SRV_SHARE_INFO_2)); ctr->share.info2 = info2; |