summaryrefslogtreecommitdiff
path: root/examples/cpp/earthtest.cpp
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2021-01-14 22:12:20 -0800
committerJoseph Henry <[email protected]>2021-01-14 22:12:20 -0800
commitf463d6c69fb70c14be528603f2bb4cc0f7efc131 (patch)
tree7508ba9f97a62e8b3e1ffc47ced699ac40f97065 /examples/cpp/earthtest.cpp
parent115a241807b1e9f7b526c406ff7e9d4dd027ddee (diff)
Minor tweak to callback function name for clarity (in code and documentation)
Diffstat (limited to 'examples/cpp/earthtest.cpp')
-rw-r--r--examples/cpp/earthtest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cpp/earthtest.cpp b/examples/cpp/earthtest.cpp
index a0275c8..0807fa6 100644
--- a/examples/cpp/earthtest.cpp
+++ b/examples/cpp/earthtest.cpp
@@ -104,7 +104,7 @@ struct Node
to ensure timely receipt of future events. You should not call libzt API functions from
this function unless it's something trivial like zts_inet_ntop() or similar that has
no state-change implications. */
-void myZeroTierEventCallback(void *msgPtr)
+void on_zts_event(void *msgPtr)
{
struct zts_callback_msg *msg = (struct zts_callback_msg *)msgPtr;
@@ -189,7 +189,7 @@ int main(int argc, char **argv)
// If disabled: Settings will NOT be read from local.conf
zts_allow_local_conf(1);
- if((err = zts_start(argv[1], &myZeroTierEventCallback, ztServicePort)) != ZTS_ERR_OK) {
+ if((err = zts_start(argv[1], &on_zts_event, ztServicePort)) != ZTS_ERR_OK) {
printf("Unable to start service, error = %d. Exiting.\n", err);
exit(1);
}