From: navarrop Date: Mon, 5 Jul 2010 09:52:30 +0000 (+0000) Subject: Sorry but need to have type size_t. X-Git-Tag: v3_5~850 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3b3c24be20797486ebd2a185c5986d30416a9e0e Sorry but need to have type size_t. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7967 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/include/simix/simix.h b/src/include/simix/simix.h index d673c4ecc0..627101dd09 100644 --- a/src/include/simix/simix.h +++ b/src/include/simix/simix.h @@ -214,8 +214,8 @@ XBT_PUBLIC(void *) SIMIX_communication_get_data(smx_comm_t comm); XBT_PUBLIC(void *) SIMIX_communication_get_src_buf(smx_comm_t comm); XBT_PUBLIC(void *) SIMIX_communication_get_dst_buf(smx_comm_t comm); -XBT_PUBLIC(void *) SIMIX_communication_get_src_buf_size(smx_comm_t comm); -XBT_PUBLIC(void *) SIMIX_communication_get_dst_buf_size(smx_comm_t comm); +XBT_PUBLIC(size_t) SIMIX_communication_get_src_buf_size(smx_comm_t comm); +XBT_PUBLIC(size_t) SIMIX_communication_get_dst_buf_size(smx_comm_t comm); /*****Networking*****/ XBT_PUBLIC(void) SIMIX_network_set_copy_data_callback(void (*callback)(smx_comm_t, size_t)); diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index fcc8c7f9f8..fb73403e3e 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -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); } /******************************************************************************/