From: markls Date: Wed, 7 Nov 2007 22:48:48 +0000 (+0000) Subject: made small change to function prototype for SIMIX_action_execute so name is now X-Git-Tag: v3.3~834 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6f7e08be303e0de189b55895761224b0421356d7?ds=sidebyside made small change to function prototype for SIMIX_action_execute so name is now type "const char *". This matches similar functions and makes calls to SIMIX_action_execute a little less unwieldy. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4989 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/include/simix/simix.h b/src/include/simix/simix.h index e431e68016..4d56103a9c 100644 --- a/src/include/simix/simix.h +++ b/src/include/simix/simix.h @@ -130,7 +130,7 @@ XBT_PUBLIC(xbt_fifo_t) SIMIX_cond_get_actions(smx_cond_t cond); /************************** Action handling ************************************/ XBT_PUBLIC(smx_action_t) SIMIX_action_communicate(smx_host_t sender,smx_host_t receiver, const char *name, double size, double rate); -XBT_PUBLIC(smx_action_t) SIMIX_action_execute(smx_host_t host,char *name, double amount); +XBT_PUBLIC(smx_action_t) SIMIX_action_execute(smx_host_t host, const char *name, double amount); XBT_PUBLIC(smx_action_t) SIMIX_action_sleep(smx_host_t host, double amount); XBT_PUBLIC(void) SIMIX_action_cancel(smx_action_t action); XBT_PUBLIC(void) SIMIX_action_set_priority(smx_action_t action, double priority); diff --git a/src/simix/smx_action.c b/src/simix/smx_action.c index 55cc1a7cd8..f3c318f6cc 100644 --- a/src/simix/smx_action.c +++ b/src/simix/smx_action.c @@ -74,7 +74,7 @@ smx_action_t SIMIX_action_communicate(smx_host_t sender, * \param amount Task amount (in bytes) * \return A new SIMIX action * */ -smx_action_t SIMIX_action_execute(smx_host_t host, char *name, +smx_action_t SIMIX_action_execute(smx_host_t host, const char *name, double amount) { smx_action_t act;