X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/20ee10ed13aee7d9fb9c844648d5159ed4a054d2..HEAD:/main.cpp?ds=sidebyside diff --git a/main.cpp b/main.cpp index 64fa49f..efeac38 100644 --- a/main.cpp +++ b/main.cpp @@ -181,7 +181,7 @@ static void install_signal_handler() action.sa_handler = signal_handler; sigemptyset(&action.sa_mask); action.sa_flags = SA_RESTART; - if (sigaction(SIGINT, &action, NULL) == -1) { + if (sigaction(SIGINT, &action, nullptr) == -1) { std::cerr << "ERROR: sigaction: " << strerror(errno) << "\n"; exit(EXIT_FAILURE_OTHER); } @@ -294,7 +294,7 @@ int main(int argc, char* argv[]) simulated_time = MSG_get_clock(); XBT_INFO("Simulation ended at %f.", simulated_time); - process::set_proc_mutex(NULL); + process::set_proc_mutex(nullptr); delete proc_cond; delete proc_mutex;