From 8802406ce606cc44533b47d4c6f9d3f58a4bdfde Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 4 Nov 2013 11:58:08 +0100 Subject: [PATCH] There is no need to export these functions. Mark them static. --- src/include/surf/maxmin.h | 1 - src/simix/smx_network.c | 3 ++- src/simix/smx_network_private.h | 1 - src/surf/maxmin.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/include/surf/maxmin.h b/src/include/surf/maxmin.h index 0db88a3b9d..acd57fb07e 100644 --- a/src/include/surf/maxmin.h +++ b/src/include/surf/maxmin.h @@ -33,7 +33,6 @@ static XBT_INLINE int double_equals(double value1, double value2) XBT_PUBLIC(lmm_system_t) lmm_system_new(int selective_update); XBT_PUBLIC(void) lmm_system_free(lmm_system_t sys); -void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var); XBT_PUBLIC(lmm_constraint_t) lmm_constraint_new(lmm_system_t sys, void *id, double bound_value); diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 0cb33eb894..7f9689a1c1 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -26,6 +26,7 @@ static smx_action_t SIMIX_fifo_get_comm(xbt_fifo_t fifo, e_smx_comm_type_t type, int (*match_fun)(void *, void *,smx_action_t), void *user_data, smx_action_t my_action); static void SIMIX_rdv_free(void *data); +static void SIMIX_comm_start(smx_action_t action); void SIMIX_network_init(void) { @@ -835,7 +836,7 @@ void SIMIX_waitany_remove_simcall_from_actions(smx_simcall_t simcall) * \brief Starts the simulation of a communication action. * \param action the communication action */ -XBT_INLINE void SIMIX_comm_start(smx_action_t action) +static XBT_INLINE void SIMIX_comm_start(smx_action_t action) { /* If both the sender and the receiver are already there, start the communication */ if (action->state == SIMIX_READY) { diff --git a/src/simix/smx_network_private.h b/src/simix/smx_network_private.h index 72bcffa824..fecdd3e77a 100644 --- a/src/simix/smx_network_private.h +++ b/src/simix/smx_network_private.h @@ -34,7 +34,6 @@ int SIMIX_rdv_comm_count_by_host(smx_rdv_t rdv, smx_host_t host); smx_action_t SIMIX_rdv_get_head(smx_rdv_t rdv); void SIMIX_rdv_set_receiver(smx_rdv_t rdv, smx_process_t proc); smx_process_t SIMIX_rdv_get_receiver(smx_rdv_t rdv); -void SIMIX_comm_start(smx_action_t action); smx_action_t SIMIX_comm_isend(smx_process_t src_proc, smx_rdv_t rdv, double task_size, double rate, void *src_buff, size_t src_buff_size, diff --git a/src/surf/maxmin.c b/src/surf/maxmin.c index feef80bb82..420695c010 100644 --- a/src/surf/maxmin.c +++ b/src/surf/maxmin.c @@ -93,7 +93,7 @@ void lmm_system_free(lmm_system_t sys) free(sys); } -XBT_INLINE void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var) +static XBT_INLINE void lmm_variable_disable(lmm_system_t sys, lmm_variable_t var) { int i; int n; -- 2.20.1