X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f:/teshsuite/simdag/availability/availability.c diff --git a/teshsuite/simdag/availability/availability.c b/teshsuite/simdag/availability/availability.c index 6c307656cf..24f3f23732 100644 --- a/teshsuite/simdag/availability/availability.c +++ b/teshsuite/simdag/availability/availability.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2020. The SimGrid Team. +/* Copyright (c) 2013-2021. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -21,8 +21,8 @@ static void scheduleDAX(const_xbt_dynar_t dax) SD_task_t task; sg_host_t *hosts = sg_host_list(); - int totalHosts = sg_host_count(); - qsort((void *) hosts, totalHosts, sizeof(sg_host_t), name_compare_hosts); + size_t totalHosts = sg_host_count(); + qsort(hosts, totalHosts, sizeof(sg_host_t), name_compare_hosts); xbt_dynar_foreach(dax, cursor, task) { if (SD_task_get_kind(task) == SD_TASK_COMP_SEQ) {