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
don't call things storage when it's mount
[simgrid.git]
/
src
/
surf
/
storage.c
diff --git
a/src/surf/storage.c
b/src/surf/storage.c
index
7d3fed6
..
d399fdb
100644
(file)
--- a/
src/surf/storage.c
+++ b/
src/surf/storage.c
@@
-95,7
+95,7
@@
static surf_action_t storage_action_open(void *storage, const char* mount,
surf_file_t file = xbt_new0(s_surf_file_t,1);
file->name = xbt_strdup(path);
file->size = size;
surf_file_t file = xbt_new0(s_surf_file_t,1);
file->name = xbt_strdup(path);
file->size = size;
- file->
storage
= xbt_strdup(mount);
+ file->
mount
= xbt_strdup(mount);
surf_action_t action = storage_action_execute(storage,0, OPEN);
action->file = (void *)file;
surf_action_t action = storage_action_execute(storage,0, OPEN);
action->file = (void *)file;
@@
-117,7
+117,7
@@
static surf_action_t storage_action_close(void *storage, surf_file_t fd)
}
free(fd->name);
}
free(fd->name);
- free(fd->
storage
);
+ free(fd->
mount
);
xbt_free(fd);
surf_action_t action = storage_action_execute(storage,0, CLOSE);
return action;
xbt_free(fd);
surf_action_t action = storage_action_execute(storage,0, CLOSE);
return action;