Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mv surf_parse -> surfxml_parse
[simgrid.git] / src / msg / deployment.c
index 70e47f1..21a1f74 100644 (file)
@@ -8,9 +8,7 @@
 #include "private.h"
 #include "xbt/sysdep.h"
 #include "xbt/log.h"
-#include "surf/surf_parse.h"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(deployment, msg,
-                               "Logging specific to MSG (environment)");
+#include "surf/surfxml_parse_private.h"
 
 static int parse_argc = -1 ;
 static char **parse_argv = NULL;
@@ -123,8 +121,8 @@ m_process_code_t MSG_get_registered_function(const char *name)
   m_process_code_t code = NULL;
 
   xbt_assert0(msg_global,"MSG_global_init has to be called before MSG_get_registered_function.");
-  code = xbt_dict_get(msg_global->registered_functions,name);
+
+  code = xbt_dict_get_or_null(msg_global->registered_functions,name);
 
   return code;
 }