From 30a8fb6dc8baf6ace186ac37c73f6b8b7531cfe3 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Mon, 29 Feb 2016 11:54:06 +0100 Subject: [PATCH] tiny fixes --- examples/msg/io/remote.c | 2 +- examples/msg/migration/migration.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/msg/io/remote.c b/examples/msg/io/remote.c index 0d90d37c09..bbb3ca0475 100644 --- a/examples/msg/io/remote.c +++ b/examples/msg/io/remote.c @@ -17,7 +17,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(remote_io, "Messages specific for this io example") static int host(int argc, char *argv[]){ msg_file_t file = MSG_file_open(argv[1], NULL); - char *filename = MSG_file_get_name(file); + const char *filename = MSG_file_get_name(file); XBT_INFO("Opened file '%s'",filename); MSG_file_dump(file); diff --git a/examples/msg/migration/migration.c b/examples/msg/migration/migration.c index 9fdc4a8642..804affbf91 100644 --- a/examples/msg/migration/migration.c +++ b/examples/msg/migration/migration.c @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "simgrid/msg.h" +#include "xbt/synchro_core.h" XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); -- 2.20.1