Skip to content

Commit

Permalink
jni: fix mismatched return value types (#2252)
Browse files Browse the repository at this point in the history
* jni: fix mismatched return value types

The Java side expects an `int` return value:
https://github.com/envoyproxy/envoy-mobile/blob/9a397d72760acba3f3e96077f705971a8dc93d91/library/java/io/envoyproxy/envoymobile/engine/JniLibrary.java#L323

Signed-off-by: JP Simard <jp@jpsim.com>
  • Loading branch information
jpsim committed Nov 28, 2022
1 parent b6b5b10 commit 6ad4cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobile/library/common/jni/jni_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1015,12 +1015,12 @@ Java_io_envoyproxy_envoymobile_engine_JniLibrary_registerStringAccessor(JNIEnv*
return result;
}

extern "C" JNIEXPORT void JNICALL
extern "C" JNIEXPORT jint JNICALL
Java_io_envoyproxy_envoymobile_engine_JniLibrary_resetConnectivityState(JNIEnv* env,
jclass, // class
jlong engine) {
jni_log("[Envoy]", "resetConnectivityState");
reset_connectivity_state(engine);
return reset_connectivity_state(engine);
}

extern "C" JNIEXPORT jint JNICALL
Expand Down

0 comments on commit 6ad4cfb

Please sign in to comment.