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
cosmetics: .name().c_str() becomes .cname()
[simgrid.git]
/
teshsuite
/
simdag
/
is-router
/
is-router.cpp
diff --git
a/teshsuite/simdag/is-router/is-router.cpp
b/teshsuite/simdag/is-router/is-router.cpp
index
3c963c9
..
b03de1f
100644
(file)
--- a/
teshsuite/simdag/is-router/is-router.cpp
+++ b/
teshsuite/simdag/is-router/is-router.cpp
@@
-23,7
+23,7
@@
int main(int argc, char **argv)
sg_host_t host;
xbt_dynar_foreach(hosts, it, host) {
simgrid::kernel::routing::NetCard * nc = host->pimpl_netcard;
sg_host_t host;
xbt_dynar_foreach(hosts, it, host) {
simgrid::kernel::routing::NetCard * nc = host->pimpl_netcard;
- printf(" - Seen: \"%s\". Type: %s\n", host->
name().c_str(), nc->isRouter() ? "router" : (nc->isAS()?"AS":
"host"));
+ printf(" - Seen: \"%s\". Type: %s\n", host->
cname(), nc->isRouter() ? "router" : (nc->isAS() ? "AS" :
"host"));
}
xbt_dynar_free(&hosts);
}
xbt_dynar_free(&hosts);