X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/821667cb42120b4d1796bd5739e20e7813d6d8ee..56d5fef422211eb776ae8d6205816d382e26ecec:/examples/msg/chainsend/common.c diff --git a/examples/msg/chainsend/common.c b/examples/msg/chainsend/common.c index 58da8dcd3d..928c6e3a43 100644 --- a/examples/msg/chainsend/common.c +++ b/examples/msg/chainsend/common.c @@ -1,10 +1,5 @@ #include "common.h" -inline void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q) -{ - xbt_dynar_push(q, &comm); -} - int process_pending_connections(xbt_dynar_t q) { unsigned int iter; @@ -15,8 +10,8 @@ int process_pending_connections(xbt_dynar_t q) xbt_dynar_foreach(q, iter, comm) { empty = 1; if (MSG_comm_test(comm)) { - MSG_comm_destroy(comm); status = MSG_comm_get_status(comm); + MSG_comm_destroy(comm); xbt_assert(status == MSG_OK, "process_pending_connections() failed"); xbt_dynar_cursor_rm(q, &iter); empty = 0;