Commit 93c85432 authored by Adam Wujek's avatar Adam Wujek

arch-unix: replace wrs_shm_alloc with calloc

note arch-unix still does not compile with WR nor HA
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent a5bcbff0
......@@ -136,8 +136,7 @@ int main(int argc, char **argv)
ppi->protocol_extension = PPSI_EXT_WR;
/* Add WR extension portDS */
if ( !(ppi->portDS->ext_dsport =
wrs_shm_alloc(ppsi_head,
sizeof(struct wr_dsport))
calloc(1, sizeof(struct wr_dsport))
)
) {
goto exit_out_of_memory;
......@@ -145,8 +144,7 @@ int main(int argc, char **argv)
/* Allocate WR data extension */
if (! (ppi->ext_data =
wrs_shm_alloc(ppsi_head,
sizeof(struct wr_data))
calloc(1, sizeof(struct wr_data))
)
) {
goto exit_out_of_memory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment