Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change sg_storage_size_t to sg_size_t and fix surf network bug
[simgrid.git] / include / msg / datatypes.h
index 96fbea7..82f5548 100644 (file)
@@ -28,7 +28,7 @@ SG_BEGIN_DECL()
 typedef struct s_smx_rvpoint *msg_mailbox_t;
 
 /* ******************************** Environment ************************************ */
-typedef struct s_as *msg_as_t;
+typedef struct As *msg_as_t;
 
 /* ******************************** Host ************************************ */
 
@@ -93,14 +93,14 @@ typedef msg_host_t msg_vm_t;
 typedef msg_host_priv_t msg_vm_priv_t;
 
 static inline msg_vm_priv_t MSG_vm_priv(msg_vm_t vm){
-  return xbt_lib_get_level(vm, MSG_HOST_LEVEL);
+  return (msg_vm_priv_t) xbt_lib_get_level(vm, MSG_HOST_LEVEL);
 }
 
 /* ******************************** File ************************************ */
 typedef struct simdata_file *simdata_file_t;
 
 typedef struct s_msg_file_info {
-  sg_storage_size_t size;
+  sg_size_t size;
   char* mount_point;
   char* storageId;
   char* storage_type;