summaryrefslogtreecommitdiff
path: root/examples/cpp/earthtest.cpp
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2018-08-03 13:53:57 -0700
committerJoseph Henry <[email protected]>2018-08-03 13:53:57 -0700
commit05fbd362b27bf077b42668f8dc4d3613c9537a4c (patch)
treeec2f009e17340c7dc162d99853ceda55c1d09880 /examples/cpp/earthtest.cpp
parent29a9856b76b6f4bc10125c9a15bc078f668a3aae (diff)
Simplified earthtest
Diffstat (limited to 'examples/cpp/earthtest.cpp')
-rw-r--r--examples/cpp/earthtest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/cpp/earthtest.cpp b/examples/cpp/earthtest.cpp
index ec218ef..df51df9 100644
--- a/examples/cpp/earthtest.cpp
+++ b/examples/cpp/earthtest.cpp
@@ -31,7 +31,9 @@
int main(int argc, char **argv)
{
uint64_t nwid = 0x8056c2e21c000001;
- zts_startjoin(path.c_str(), nwid);
- printf("%llx", (unsigned long long)zts_get_node_id());
+ zts_startjoin(".", nwid);
+ fprintf(stderr, "%llx", (unsigned long long)zts_get_node_id());
+ zts_leave(nwid);
+ zts_stop();
return 0;
} \ No newline at end of file