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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
src
/
simgrid
/
host.cpp
diff --git
a/src/simgrid/host.cpp
b/src/simgrid/host.cpp
index
7d38631
..
701b7f4
100644
(file)
--- a/
src/simgrid/host.cpp
+++ b/
src/simgrid/host.cpp
@@
-28,7
+28,7
@@
size_t sg_host_count()
* internally).
* \see sg_host_count()
*/
* internally).
* \see sg_host_count()
*/
-sg_host_t *sg_host_list(
void
) {
+sg_host_t *sg_host_list() {
xbt_assert(sg_host_count() > 0, "There is no host!");
return (sg_host_t*)xbt_dynar_to_array(sg_hosts_as_dynar());
}
xbt_assert(sg_host_count() > 0, "There is no host!");
return (sg_host_t*)xbt_dynar_to_array(sg_hosts_as_dynar());
}
@@
-53,7
+53,7
@@
sg_host_t sg_host_by_name(const char *name)
return simgrid::s4u::Host::by_name_or_null(name);
}
return simgrid::s4u::Host::by_name_or_null(name);
}
-xbt_dynar_t sg_hosts_as_dynar(
void
)
+xbt_dynar_t sg_hosts_as_dynar()
{
xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t),nullptr);
{
xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t),nullptr);