X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2aaa919aa7451546f9576b3a71fc41f896c24b31..bd08f5fb99eea01833b2b83730a0732443da8d38:/examples/msg/chainsend/common.c?ds=sidebyside diff --git a/examples/msg/chainsend/common.c b/examples/msg/chainsend/common.c index eefb02d0a1..12fc601623 100644 --- a/examples/msg/chainsend/common.c +++ b/examples/msg/chainsend/common.c @@ -1,9 +1,10 @@ -#include "common.h" +/* Copyright (c) 2012-2014. The SimGrid Team. + * All rights reserved. */ -inline void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q) -{ - xbt_dynar_push(q, &comm); -} +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +#include "common.h" int process_pending_connections(xbt_dynar_t q) { @@ -15,9 +16,9 @@ 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); - xbt_assert(status == MSG_OK, __FILE__ ": process_pending_connections() failed"); + MSG_comm_destroy(comm); + xbt_assert(status == MSG_OK, "process_pending_connections() failed"); xbt_dynar_cursor_rm(q, &iter); empty = 0; }