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
Use homogeneous dicts which are more efficient.
[simgrid.git]
/
src
/
surf
/
storage.c
diff --git
a/src/surf/storage.c
b/src/surf/storage.c
index
9a0a99e
..
a34bf83
100644
(file)
--- a/
src/surf/storage.c
+++ b/
src/surf/storage.c
@@
-43,7
+43,7
@@
static surf_action_t storage_action_ls(void *storage, const char* path)
{
surf_action_t action = storage_action_execute(storage,0, LS);
action->ls_dict = NULL;
- xbt_dict_t ls_dict = xbt_dict_new
(
);
+ xbt_dict_t ls_dict = xbt_dict_new
_homogeneous(NULL
);
char* key;
sg_storage_size_t size = 0;
@@
-204,7
+204,7
@@
static xbt_dict_t storage_get_content(void *storage)
/*surf_action_t action = storage_action_execute(storage,0, LS);*/
void *st = surf_storage_resource_priv(storage);
- xbt_dict_t content_dict = xbt_dict_new
(
);
+ xbt_dict_t content_dict = xbt_dict_new
_homogeneous(NULL
);
xbt_dict_cursor_t cursor = NULL;
char *file;
char *size;