From e2028fc5241ce699611f027697f1545201156437 Mon Sep 17 00:00:00 2001 From: navarrop Date: Fri, 2 Jul 2010 08:51:50 +0000 Subject: [PATCH] Change the type of return. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7960 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/include/simix/simix.h | 4 ++-- src/simix/smx_network.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/simix/simix.h b/src/include/simix/simix.h index d673c4ecc0..f709199d7e 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 53af644ba6..54efa7416d 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -444,11 +444,11 @@ 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 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 comm->dst_buff_size; } -- 2.20.1