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
Introduce sg_storage_size_t type
[simgrid.git]
/
examples
/
simdag
/
io
/
sd_io.c
diff --git
a/examples/simdag/io/sd_io.c
b/examples/simdag/io/sd_io.c
index
76a192b
..
5d30703
100644
(file)
--- a/
examples/simdag/io/sd_io.c
+++ b/
examples/simdag/io/sd_io.c
@@
-14,11
+14,13
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(sd_io,
"Logging specific to this SimDag example");
int main(int argc, char **argv)
{
"Logging specific to this SimDag example");
int main(int argc, char **argv)
{
- unsigned int ctr
, ctr2
;
+ unsigned int ctr;
const SD_workstation_t *workstations;
int total_nworkstations;
const SD_workstation_t *workstations;
int total_nworkstations;
- xbt_d
ynar
_t current_storage_list;
+ xbt_d
ict
_t current_storage_list;
char *mount_name;
char *mount_name;
+ char *storage_name;
+ xbt_dict_cursor_t cursor = NULL;
SD_init(&argc, argv);
/* Set the workstation model to default, as storage is not supported by the
SD_init(&argc, argv);
/* Set the workstation model to default, as storage is not supported by the
@@
-31,10
+33,11
@@
int main(int argc, char **argv)
for (ctr=0; ctr<total_nworkstations;ctr++){
current_storage_list = SD_workstation_get_storage_list(workstations[ctr]);
for (ctr=0; ctr<total_nworkstations;ctr++){
current_storage_list = SD_workstation_get_storage_list(workstations[ctr]);
- xbt_d
ynar_foreach(current_storage_list, ctr2, mount
_name)
+ xbt_d
ict_foreach(current_storage_list,cursor,mount_name,storage
_name)
XBT_INFO("Workstation '%s' mounts '%s'",
SD_workstation_get_name(workstations[ctr]), mount_name);
XBT_INFO("Workstation '%s' mounts '%s'",
SD_workstation_get_name(workstations[ctr]), mount_name);
- xbt_d
ynar_free_container
(¤t_storage_list);
+ xbt_d
ict_free
(¤t_storage_list);
}
}
+ SD_exit();
return 0;
}
return 0;
}