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
Get ride of a supurious compiler warning
[simgrid.git]
/
src
/
surf
/
network.c
diff --git
a/src/surf/network.c
b/src/surf/network.c
index
c678242
..
1077cdb
100644
(file)
--- a/
src/surf/network.c
+++ b/
src/surf/network.c
@@
-458,7
+458,7
@@
static void update_actions_state(double now, double delta)
static void update_resource_state(void *id,
tmgr_trace_event_t event_type,
static void update_resource_state(void *id,
tmgr_trace_event_t event_type,
- double value)
+ double value
, double date
)
{
link_CM02_t nw_link = id;
/* printf("[" "%lg" "] Asking to update network card \"%s\" with value " */
{
link_CM02_t nw_link = id;
/* printf("[" "%lg" "] Asking to update network card \"%s\" with value " */
@@
-472,11
+472,12
@@
static void update_resource_state(void *id,
} else if (event_type == nw_link->lat_event) {
double delta = value - nw_link->lat_current;
lmm_variable_t var = NULL;
} else if (event_type == nw_link->lat_event) {
double delta = value - nw_link->lat_current;
lmm_variable_t var = NULL;
+ lmm_element_t elem = NULL;
surf_action_network_CM02_t action = NULL;
nw_link->lat_current = value;
surf_action_network_CM02_t action = NULL;
nw_link->lat_current = value;
- while (lmm_get_var_from_cnst
- (network_maxmin_system, nw_link->constraint, &
var
)) {
+ while (
(var=
lmm_get_var_from_cnst
+ (network_maxmin_system, nw_link->constraint, &
elem)
)) {
action = lmm_variable_id(var);
action->lat_current += delta;
if (action->rate < 0)
action = lmm_variable_id(var);
action->lat_current += delta;
if (action->rate < 0)