X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/30a8fb6dc8baf6ace186ac37c73f6b8b7531cfe3..7862d928239639a5fbde23866f80f1b234ff8396:/examples/msg/migration/migration.c diff --git a/examples/msg/migration/migration.c b/examples/msg/migration/migration.c index 804affbf91..7898153e3b 100644 --- a/examples/msg/migration/migration.c +++ b/examples/msg/migration/migration.c @@ -65,14 +65,12 @@ int main(int argc, char *argv[]) msg_error_t res = MSG_OK; MSG_init(&argc, argv); - xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n" - "\tExample: %s msg_platform.xml msg_deployment_suspend.xml\n", argv[0], argv[0]); + xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); MSG_create_environment(argv[1]); - MSG_function_register("emigrant", emigrant); - MSG_function_register("policeman", policeman); - MSG_launch_application(argv[2]); + MSG_process_create("emigrant", emigrant, NULL, MSG_get_host_by_name("Jacquelin")); + MSG_process_create("policeman", policeman, NULL, MSG_get_host_by_name("Boivin")); mutex = xbt_mutex_init(); cond = xbt_cond_init();