A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Useless cast to void*.
[simgrid.git]
/
teshsuite
/
simdag
/
availability
/
availability.c
diff --git
a/teshsuite/simdag/availability/availability.c
b/teshsuite/simdag/availability/availability.c
index
73c9e99
..
20867ee
100644
(file)
--- a/
teshsuite/simdag/availability/availability.c
+++ b/
teshsuite/simdag/availability/availability.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-20
15
. The SimGrid Team.
+/* Copyright (c) 2013-20
20
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-12,17
+12,17
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logging for the current example");
static int name_compare_hosts(const void *n1, const void *n2)
{
static int name_compare_hosts(const void *n1, const void *n2)
{
- return strcmp(sg_host_get_name(*(
sg_host_t *) n1), sg_host_get_name(*(sg_host_t *)
n2));
+ return strcmp(sg_host_get_name(*(
const sg_host_t*)n1), sg_host_get_name(*(const sg_host_t*)
n2));
}
}
-static void scheduleDAX(xbt_dynar_t dax)
+static void scheduleDAX(
const_
xbt_dynar_t dax)
{
unsigned int cursor;
SD_task_t task;
sg_host_t *hosts = sg_host_list();
{
unsigned int cursor;
SD_task_t task;
sg_host_t *hosts = sg_host_list();
-
in
t 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) {
xbt_dynar_foreach(dax, cursor, task) {
if (SD_task_get_kind(task) == SD_TASK_COMP_SEQ) {