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 | e0931cda809e4bb48bd97cad6d7ab5fb6dc53eb2 (patch) | |
tree | ac4cc052981295cdb45f3a4acd1e220f374824c4 | |
parent | c48e95297e63c8b6f0c6686e5bcfa52229710dbc (diff) | |
download | samba-e0931cda809e4bb48bd97cad6d7ab5fb6dc53eb2.tar.gz |
Cast prs_alloc_mem to correct type.
Jeremy.
-rw-r--r-- | source/rpc_parse/parse_srv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_srv.c b/source/rpc_parse/parse_srv.c index 69cc1e7bda2..c572d881d6f 100644 --- a/source/rpc_parse/parse_srv.c +++ b/source/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; |