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
plug some leak by delete last message before leaving
[simgrid.git]
/
examples
/
msg
/
actions-storage
/
actions-storage.c
diff --git
a/examples/msg/actions-storage/actions-storage.c
b/examples/msg/actions-storage/actions-storage.c
index
76d399a
..
a4e0bec
100644
(file)
--- a/
examples/msg/actions-storage/actions-storage.c
+++ b/
examples/msg/actions-storage/actions-storage.c
@@
-4,7
+4,7
@@
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/msg.h"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/msg.h"
-#include <xbt/replay.h>
+#include <xbt/replay.h
pp
>
XBT_LOG_NEW_DEFAULT_CATEGORY(storage_actions, "Messages specific for this example");
XBT_LOG_NEW_DEFAULT_CATEGORY(storage_actions, "Messages specific for this example");
@@
-92,10
+92,8
@@
static void action_close(const char *const *action) {
}
int main(int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
- msg_error_t res = MSG_OK;
-
MSG_init(&argc, argv);
MSG_init(&argc, argv);
- /* Explicit initialization of the action module is required
now
*/
+ /* Explicit initialization of the action module is required */
MSG_action_init();
xbt_assert(argc > 3,"Usage: %s platform_file deployment_file [action_files]\n"
MSG_action_init();
xbt_assert(argc > 3,"Usage: %s platform_file deployment_file [action_files]\n"
@@
-111,10
+109,10
@@
int main(int argc, char *argv[]) {
xbt_replay_action_register("read", action_read);
xbt_replay_action_register("close", action_close);
xbt_replay_action_register("read", action_read);
xbt_replay_action_register("close", action_close);
- if (
!opened_files
)
+ if (
opened_files == NULL
)
opened_files = xbt_dict_new_homogeneous(NULL);
/* Actually do the simulation using MSG_action_trace_run */
opened_files = xbt_dict_new_homogeneous(NULL);
/* Actually do the simulation using MSG_action_trace_run */
-
res = MSG_action_trace_run(argv[3]);
// it's ok to pass a NULL argument here
+
msg_error_t res = MSG_action_trace_run(argv[3]);
// it's ok to pass a NULL argument here
XBT_INFO("Simulation time %g", MSG_get_clock());
XBT_INFO("Simulation time %g", MSG_get_clock());