X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..258864c23d070467ce222d3fa78aeb63e849c47c:/teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp diff --git a/teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp b/teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp index 8f278b2fdf..b4a467a306 100644 --- a/teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp +++ b/teshsuite/msg/host_on_off_processes/host_on_off_processes.cpp @@ -15,8 +15,7 @@ int tasks_done = 0; static void task_cleanup_handler(void* task) { - if (task) - MSG_task_destroy(static_cast(task)); + MSG_task_destroy(static_cast(task)); } static int process_daemon(int /*argc*/, char** /*argv*/) @@ -108,7 +107,7 @@ static int test_launcher(int /*argc*/, char** /*argv*/) } test = 3; - // Create a process running sucessive sleeps on a host and turn the host off during the execution of the process. + // Create a process running successive sleeps on a host and turn the host off during the execution of the process. if (xbt_dynar_search_or_negative(tests, &test) != -1) { xbt_die("Test 3 is superseeded by activity-lifecycle"); }