static void display_storage_properties(msg_storage_t storage){
xbt_dict_cursor_t cursor = NULL;
- char *key, *data;
+ char *key;
+ char *data;
xbt_dict_t props = MSG_storage_get_properties(storage);
if (xbt_dict_length(props) > 0){
XBT_INFO("\tProperties of mounted storage: %s", MSG_storage_get_name(storage));
static sg_size_t write_local_file(const char *dest, sg_size_t file_size)
{
- sg_size_t written;
msg_file_t file = MSG_file_open(dest, NULL);
- written = MSG_file_write(file, file_size);
+ sg_size_t written = MSG_file_write(file, file_size);
XBT_INFO("%llu bytes on %llu bytes have been written by %s on /sd1",written, file_size,
MSG_host_get_name(MSG_host_self()));
MSG_file_close(file);
static sg_size_t read_local_file(const char *src)
{
- sg_size_t read, file_size;
msg_file_t file = MSG_file_open(src, NULL);
- file_size = MSG_file_get_size(file);
+ sg_size_t file_size = MSG_file_get_size(file);
- read = MSG_file_read(file, file_size);
+ sg_size_t read = MSG_file_read(file, file_size);
XBT_INFO("%s has read %llu on %s",MSG_host_get_name(MSG_host_self()),read,src);
MSG_file_close(file);