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
Initialize variable, and make gcc happy.
[simgrid.git]
/
src
/
simix
/
smx_user.c
diff --git
a/src/simix/smx_user.c
b/src/simix/smx_user.c
index
3d17a05
..
f618fdf
100644
(file)
--- a/
src/simix/smx_user.c
+++ b/
src/simix/smx_user.c
@@
-607,7
+607,7
@@
smx_rdv_t simcall_rdv_get_by_name(const char *name)
{
xbt_assert(name != NULL, "Invalid parameter for simcall_rdv_get_by_name (name is NULL)");
- /* FIXME: this is a horrible los
t
of performance, so we hack it out by
+ /* FIXME: this is a horrible los
s
of performance, so we hack it out by
* skipping the simcall (for now). It works in parallel, it won't work on
* distributed but probably we will change MSG for that. */
@@
-747,14
+747,14
@@
double simcall_comm_change_rate_first_action(smx_rdv_t rdv, double newrate)
item = xbt_fifo_get_first_item(rdv->comm_fifo);
if (item != NULL) {
-
action = (smx_action_t) xbt_fifo_get_item_content(item);
-
if (action->comm.rate > newrate) {
-
action->comm.rate = newrate;
-
return newrate;
-
} else
-
return action->comm.rate;
+ action = (smx_action_t) xbt_fifo_get_item_content(item);
+ if (action->comm.rate > newrate) {
+ action->comm.rate = newrate;
+ return newrate;
+ } else
+ return action->comm.rate;
} else
-
return -1.0;
+ return -1.0;
}