Removed unnecessary casts
This commit is contained in:
@@ -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");
|
LOGE("message peer is too long (max 255 charcaters)\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
BaresipContext *pctx = (BaresipContext*)(&g_ctx);
|
BaresipContext *pctx = &g_ctx;
|
||||||
JavaVM *javaVM = pctx->javaVM;
|
JavaVM *javaVM = pctx->javaVM;
|
||||||
JNIEnv *env;
|
JNIEnv *env;
|
||||||
jint res = (*javaVM)->GetEnv(javaVM, (void**)&env, JNI_VERSION_1_6);
|
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,
|
LOGD("send_response_handler received response '%u %s' at %s\n", msg->scode,
|
||||||
reason_buf, (char *)arg);
|
reason_buf, (char *)arg);
|
||||||
|
|
||||||
BaresipContext *pctx = (BaresipContext*)(&g_ctx);
|
BaresipContext *pctx = &g_ctx;
|
||||||
JavaVM *javaVM = pctx->javaVM;
|
JavaVM *javaVM = pctx->javaVM;
|
||||||
JNIEnv *env;
|
JNIEnv *env;
|
||||||
jint res = (*javaVM)->GetEnv(javaVM, (void**)&env, JNI_VERSION_1_6);
|
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
|
JNIEXPORT void JNICALL
|
||||||
Java_com_tutpro_baresip_Api_uag_1enable_1sip_1trace(JNIEnv *env, jobject thiz, jboolean enable) {
|
Java_com_tutpro_baresip_Api_uag_1enable_1sip_1trace(JNIEnv *env, jobject thiz, jboolean enable) {
|
||||||
LOGD("enabling sip trace (%d)\n", enable);
|
LOGD("enabling sip trace (%d)\n", enable);
|
||||||
(void)uag_enable_sip_trace(enable);
|
uag_enable_sip_trace(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL
|
JNIEXPORT void JNICALL
|
||||||
|
|||||||
Reference in New Issue
Block a user