From 340a633ec2d8e3d576fece703a75386c85bd9a37 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 21 Mar 2021 14:55:46 +0200 Subject: [PATCH] Removed unnecessary casts --- app/src/main/cpp/baresip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index fbc8754f..1ce2992d 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -298,7 +298,7 @@ static void message_handler(struct ua *ua, const struct pl *peer, const struct p LOGE("message peer is too long (max 255 charcaters)\n"); return; } - BaresipContext *pctx = (BaresipContext*)(&g_ctx); + BaresipContext *pctx = &g_ctx; JavaVM *javaVM = pctx->javaVM; JNIEnv *env; jint res = (*javaVM)->GetEnv(javaVM, (void**)&env, JNI_VERSION_1_6); @@ -346,7 +346,7 @@ static void send_resp_handler(int err, const struct sip_msg *msg, void *arg) LOGD("send_response_handler received response '%u %s' at %s\n", msg->scode, reason_buf, (char *)arg); - BaresipContext *pctx = (BaresipContext*)(&g_ctx); + BaresipContext *pctx = &g_ctx; JavaVM *javaVM = pctx->javaVM; JNIEnv *env; jint res = (*javaVM)->GetEnv(javaVM, (void**)&env, JNI_VERSION_1_6); @@ -1685,7 +1685,7 @@ Java_com_tutpro_baresip_Api_uag_1reset_1transp(JNIEnv *env, jobject thiz, jboole JNIEXPORT void JNICALL Java_com_tutpro_baresip_Api_uag_1enable_1sip_1trace(JNIEnv *env, jobject thiz, jboolean enable) { LOGD("enabling sip trace (%d)\n", enable); - (void)uag_enable_sip_trace(enable); + uag_enable_sip_trace(enable); } JNIEXPORT void JNICALL