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
Fix error: passing argument 3 of ‘xbt_dict_set’ discards ‘const’ qualifier from point...
[simgrid.git]
/
src
/
instr
/
instr_interface.c
diff --git
a/src/instr/instr_interface.c
b/src/instr/instr_interface.c
index
fabcf00
..
df21be5
100644
(file)
--- a/
src/instr/instr_interface.c
+++ b/
src/instr/instr_interface.c
@@
-38,7
+38,7
@@
void TRACE_category_with_color (const char *category, const char *color)
//check if category is already created
char *created = xbt_dict_get_or_null(created_categories, category);
if (created) return;
//check if category is already created
char *created = xbt_dict_get_or_null(created_categories, category);
if (created) return;
- xbt_dict_set (created_categories, category, xbt_strdup("1"),
xbt_free
);
+ xbt_dict_set (created_categories, category, xbt_strdup("1"),
NULL
);
//define final_color
char final_color[INSTR_DEFAULT_STR_SIZE];
//define final_color
char final_color[INSTR_DEFAULT_STR_SIZE];
@@
-138,7
+138,8
@@
static void instr_user_srcdst_variable(double time,
double value,
InstrUserVariable what)
{
double value,
InstrUserVariable what)
{
- xbt_dynar_t route = global_routing->get_route (src, dst);
+ xbt_dynar_t route=NULL;
+ routing_get_route_and_latency (src, dst, &route,NULL);
unsigned int i;
void *link;
xbt_dynar_foreach (route, i, link) {
unsigned int i;
void *link;
xbt_dynar_foreach (route, i, link) {