Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Not using set/get functions is bad, but raising an errer when a set
authorsuter <suter@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 30 Oct 2009 17:27:34 +0000 (17:27 +0000)
committersuter <suter@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 30 Oct 2009 17:27:34 +0000 (17:27 +0000)
modifies an existing data is worse.

Remove the paranoid assert

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6826 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/m_process.c

index 48d8d41..c2cab1b 100644 (file)
@@ -250,7 +250,6 @@ void *MSG_process_get_data(m_process_t process)
 MSG_error_t MSG_process_set_data(m_process_t process, void *data)
 {
   xbt_assert0((process != NULL), "Invalid parameters");
 MSG_error_t MSG_process_set_data(m_process_t process, void *data)
 {
   xbt_assert0((process != NULL), "Invalid parameters");
-  xbt_assert0((process->data == NULL), "Data already set");
 
   process->data = data;
 
 
   process->data = data;