Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sorry but need to have type size_t.
[simgrid.git] / src / simix / smx_network.c
index fcc8c7f..fb73403 100644 (file)
@@ -444,13 +444,13 @@ XBT_PUBLIC(void *) SIMIX_communication_get_dst_buf(smx_comm_t comm)
 {
   return comm->dst_buff;
 }
-XBT_PUBLIC(void *) SIMIX_communication_get_src_buf_size(smx_comm_t comm)
+XBT_PUBLIC(size_t) SIMIX_communication_get_src_buf_size(smx_comm_t comm)
 {
-  return (void *)comm->src_buff_size;
+  return comm->src_buff_size;
 }
-XBT_PUBLIC(void *) SIMIX_communication_get_dst_buf_size(smx_comm_t comm)
+XBT_PUBLIC(size_t) SIMIX_communication_get_dst_buf_size(smx_comm_t comm)
 {
-  return (void *)(comm->dst_buff_size);
+  return *(comm->dst_buff_size);
 }
 
 /******************************************************************************/