Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a compilation error at SIMIX_vm_shutdown
[simgrid.git] / src / xbt / ex.c
index c6e74bd..7faa0f0 100644 (file)
@@ -222,6 +222,9 @@ const char *xbt_ex_catname(xbt_errcat_t cat)
     return "tracing error";
   case io_error:
     return "io error";
+  case vm_error:
+    return "vm error";
+
   }
   return "INVALID ERROR";
 }
@@ -409,7 +412,7 @@ typedef struct {
 
 static void good_example(void)
 {
-  global_context_t *global_context = malloc(sizeof(global_context_t));
+  global_context_t *global_context = xbt_malloc(sizeof(global_context_t));
 
   /* GOOD_EXAMPLE */
   {                             /*01 */