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 some more atof
[simgrid.git]
/
examples
/
msg
/
icomms
/
peer3.c
diff --git
a/examples/msg/icomms/peer3.c
b/examples/msg/icomms/peer3.c
index
22072b4
..
a0fe6c6
100644
(file)
--- a/
examples/msg/icomms/peer3.c
+++ b/
examples/msg/icomms/peer3.c
@@
-90,7
+90,7
@@
int receiver(int argc, char *argv[])
int i;
char mailbox[80];
xbt_dynar_t comms = xbt_dynar_new(sizeof(msg_comm_t), NULL);
int i;
char mailbox[80];
xbt_dynar_t comms = xbt_dynar_new(sizeof(msg_comm_t), NULL);
- int tasks =
atof(argv[2]
);
+ int tasks =
xbt_str_parse_int(argv[2], "Invalid amount of tasks: %s"
);
msg_task_t *task = xbt_new(msg_task_t, tasks);
XBT_ATTRIB_UNUSED int read;
msg_task_t *task = xbt_new(msg_task_t, tasks);
XBT_ATTRIB_UNUSED int read;