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
Remove usage of xbt_assert[0-9].
[simgrid.git]
/
examples
/
msg
/
alias
/
masterslave_forwarder_with_alias.c
diff --git
a/examples/msg/alias/masterslave_forwarder_with_alias.c
b/examples/msg/alias/masterslave_forwarder_with_alias.c
index
19e967f
..
6f4a70b
100644
(file)
--- a/
examples/msg/alias/masterslave_forwarder_with_alias.c
+++ b/
examples/msg/alias/masterslave_forwarder_with_alias.c
@@
-42,11
+42,11
@@
int master(int argc, char *argv[])
int read;
read = sscanf(argv[1], "%d", &number_of_tasks);
int read;
read = sscanf(argv[1], "%d", &number_of_tasks);
- xbt_assert
1
(read, "Invalid argument %s\n", argv[1]);
+ xbt_assert(read, "Invalid argument %s\n", argv[1]);
read = sscanf(argv[2], "%lg", &task_comp_size);
read = sscanf(argv[2], "%lg", &task_comp_size);
- xbt_assert
1
(read, "Invalid argument %s\n", argv[2]);
+ xbt_assert(read, "Invalid argument %s\n", argv[2]);
read = sscanf(argv[3], "%lg", &task_comm_size);
read = sscanf(argv[3], "%lg", &task_comm_size);
- xbt_assert
1
(read, "Invalid argument %s\n", argv[3]);
+ xbt_assert(read, "Invalid argument %s\n", argv[3]);
{
/* Task creation */
{
/* Task creation */
@@
-115,7
+115,7
@@
int slave(int argc, char *argv[])
while (1) {
res = MSG_task_receive(&(task), MSG_host_get_name(MSG_host_self()));
while (1) {
res = MSG_task_receive(&(task), MSG_host_get_name(MSG_host_self()));
- xbt_assert
0
(res == MSG_OK, "MSG_task_receive failed");
+ xbt_assert(res == MSG_OK, "MSG_task_receive failed");
XBT_INFO("Received \"%s\"", MSG_task_get_name(task));
XBT_INFO("Received \"%s\"", MSG_task_get_name(task));