X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9ed8f63d4856efe72038250011ad82a0f90f7d53..97fd3f6677d07c8893042c2644ada1d892f71730:/src/xbt/ex.c diff --git a/src/xbt/ex.c b/src/xbt/ex.c index c6e74bddfd..7faa0f0079 100644 --- a/src/xbt/ex.c +++ b/src/xbt/ex.c @@ -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 */