A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kill dead code in the C interface to surf
[simgrid.git]
/
examples
/
msg
/
chainsend
/
common.c
diff --git
a/examples/msg/chainsend/common.c
b/examples/msg/chainsend/common.c
index 37f2b74cb848bbe05981b3136c1ed2e289926272..12fc601623b4bdcf2f7d97e810b6243a1883f499 100644
(file)
--- a/
examples/msg/chainsend/common.c
+++ b/
examples/msg/chainsend/common.c
@@
-1,3
+1,9
@@
+/* Copyright (c) 2012-2014. The SimGrid Team.
+ * All rights reserved. */
+
+/* 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)
#include "common.h"
int process_pending_connections(xbt_dynar_t q)
@@
-10,8
+16,8
@@
int process_pending_connections(xbt_dynar_t q)
xbt_dynar_foreach(q, iter, comm) {
empty = 1;
if (MSG_comm_test(comm)) {
xbt_dynar_foreach(q, iter, comm) {
empty = 1;
if (MSG_comm_test(comm)) {
- MSG_comm_destroy(comm);
status = MSG_comm_get_status(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;
xbt_assert(status == MSG_OK, "process_pending_connections() failed");
xbt_dynar_cursor_rm(q, &iter);
empty = 0;