Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
one 'void*' less
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 28 Aug 2016 16:33:06 +0000 (18:33 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 28 Aug 2016 16:33:06 +0000 (18:33 +0200)
include/simgrid/simix.h
src/msg/msg_vm.cpp
src/simix/libsmx.cpp

index 9033727..d1c103a 100644 (file)
@@ -263,7 +263,7 @@ XBT_PUBLIC(e_smx_state_t) simcall_execution_wait(smx_activity_t execution);
 
 /******************************* VM simcalls ********************************/
 // Create the vm_workstation at the SURF level
-XBT_PUBLIC(void*) simcall_vm_create(const char *name, sg_host_t host);
+XBT_PUBLIC(sg_host_t) simcall_vm_create(const char *name, sg_host_t host);
 XBT_PUBLIC(int) simcall_vm_get_state(sg_host_t vm);
 XBT_PUBLIC(void) simcall_vm_start(sg_host_t vm);
 XBT_PUBLIC(void) simcall_vm_migrate(sg_host_t vm, sg_host_t dst_pm);
index 4f93f96..2198f6d 100644 (file)
@@ -205,7 +205,7 @@ msg_vm_t MSG_vm_create_core(msg_host_t ind_pm, const char *name)
 
   /* Note: ind_vm and vm_workstation point to the same elm object. */
   /* Ask the SIMIX layer to create the surf vm resource */
-  sg_host_t ind_vm_workstation =  (sg_host_t) simcall_vm_create(name, ind_pm);
+  sg_host_t ind_vm_workstation = simcall_vm_create(name, ind_pm);
 
   msg_vm_t ind_vm = (msg_vm_t) __MSG_host_create(ind_vm_workstation);
 
index c50995f..261f22c 100644 (file)
@@ -189,7 +189,7 @@ e_smx_state_t simcall_execution_wait(smx_activity_t execution)
  *
  * \return The host object of the VM
  */
-void* simcall_vm_create(const char *name, sg_host_t phys_host)
+sg_host_t simcall_vm_create(const char *name, sg_host_t phys_host)
 {
   return simgrid::simix::kernelImmediate(std::bind(SIMIX_vm_create, name, phys_host));
 }