From: navarrop Date: Mon, 5 Jul 2010 09:19:05 +0000 (+0000) Subject: Should be type void*. X-Git-Tag: v3_5~852 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/085d9d29d24a44ebaa9a48bac9ed0403293a52d8 Should be type void*. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7965 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/include/simix/simix.h b/src/include/simix/simix.h index f709199d7e..d673c4ecc0 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(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); +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); /*****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 5e3bf6fa0b..fcc8c7f9f8 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(size_t) SIMIX_communication_get_src_buf_size(smx_comm_t comm) +XBT_PUBLIC(void *) SIMIX_communication_get_src_buf_size(smx_comm_t comm) { return (void *)comm->src_buff_size; } -XBT_PUBLIC(size_t *) SIMIX_communication_get_dst_buf_size(smx_comm_t comm) +XBT_PUBLIC(void *) SIMIX_communication_get_dst_buf_size(smx_comm_t comm) { - return comm->dst_buff_size; + return (void *)(comm->dst_buff_size); } /******************************************************************************/