]> AND Public Git Repository - simgrid.git/blobdiff - examples/c/cloud-capping/cloud-capping.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of framagit.org:Adrien.Gougeon/simgrid into master
[simgrid.git] / examples / c / cloud-capping / cloud-capping.c
index 0e8a1cd0e9d3ced5e23c95af626e64b6477089e8..bc3de023fdcecaf27423c097e0cca36866fb6d9b 100644 (file)
@@ -20,7 +20,7 @@ static void worker_main(int argc, char* argv[])
 {
   xbt_assert(argc == 4);
   double computation_amount = xbt_str_parse_double(argv[1], "Invalid computation amount: %s");
-  int use_bound             = xbt_str_parse_int(argv[2], "Second parameter (use_bound) should be 0 or 1 but is: %s");
+  int use_bound             = !!xbt_str_parse_int(argv[2], "Second parameter (use_bound) should be 0 or 1 but is: %s");
   double bound              = xbt_str_parse_double(argv[3], "Invalid bound: %s");
 
   double clock_sta = simgrid_get_clock();
@@ -190,7 +190,7 @@ static void test_two_tasks(sg_host_t hostA, sg_host_t hostB)
   sg_actor_sleep_for(1000);
 }
 
-static void master_main(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void master_main(int argc, char* argv[])
 {
   sg_host_t pm0 = sg_host_by_name("Fafard");
   sg_host_t pm1 = sg_host_by_name("Fafard");