aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/zt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/zt.c b/tests/zt.c
index bc11d3ac..b46741ab 100644
--- a/tests/zt.c
+++ b/tests/zt.c
@@ -287,7 +287,8 @@ TestMain("ZeroTier Transport", {
So(nng_listener_create(&l_test, s_test, "zt://*." NWID ":0") == 0);
So(nng_listener_start(l_test, 0) == 0);
So(nng_listener_getopt_uint64(l_test, NNG_OPT_ZT_NODE, &node) == 0);
- snprintf(fmt, sizeof(fmt), "zt://%llx." NWID ":%%u", node);
+ snprintf(fmt, sizeof(fmt), "zt://%llx." NWID ":%%u",
+ (unsigned long long) node);
nng_listener_close(l_test);
trantest_test_extended(fmt, check_props);