From 9ae49b5b85092ad3d6d9128a084c93f2a70661f9 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 13 Feb 2017 10:51:36 -0800 Subject: Update JNI with new root terminology --- java/jni/ZT_jniutils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'java/jni') diff --git a/java/jni/ZT_jniutils.cpp b/java/jni/ZT_jniutils.cpp index e355271c..7bdc7611 100644 --- a/java/jni/ZT_jniutils.cpp +++ b/java/jni/ZT_jniutils.cpp @@ -182,11 +182,11 @@ jobject createPeerRole(JNIEnv *env, ZT_PeerRole role) case ZT_PEER_ROLE_LEAF: fieldName = "PEER_ROLE_LEAF"; break; - case ZT_PEER_ROLE_UPSTREAM: - fieldName = "PEER_ROLE_UPSTREAM"; + case ZT_PEER_ROLE_MOON: + fieldName = "PEER_ROLE_MOON"; break; - case ZT_PEER_ROLE_ROOT: - fieldName = "PEER_ROLE_ROOTS"; + case ZT_PEER_ROLE_PLANET: + fieldName = "PEER_ROLE_PLANET"; break; } -- cgit v1.2.3