[sr-dev] git:master:fce9ee48: app_jsdt: fixed comiple warning

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 6 11:09:36 CET 2017


Module: kamailio
Branch: master
Commit: fce9ee48d2aa18dce141fd51fc5b7fa12112b787
URL: https://github.com/kamailio/kamailio/commit/fce9ee48d2aa18dce141fd51fc5b7fa12112b787

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-01-06T11:08:36+01:00

app_jsdt: fixed comiple warning

---

Modified: src/modules/app_jsdt/app_jsdt_api.c

---

Diff:  https://github.com/kamailio/kamailio/commit/fce9ee48d2aa18dce141fd51fc5b7fa12112b787.diff
Patch: https://github.com/kamailio/kamailio/commit/fce9ee48d2aa18dce141fd51fc5b7fa12112b787.patch

---

diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c
index 5f0725e..ce4d36e 100644
--- a/src/modules/app_jsdt/app_jsdt_api.c
+++ b/src/modules/app_jsdt/app_jsdt_api.c
@@ -385,7 +385,7 @@ static int jsdt_sr_pv_is_null (duk_context *J)
 const duk_function_list_entry _sr_kemi_pv_J_Map[] = {
 	{ "get", jsdt_sr_pv_get, 1 /* 1 args */ },
 	{ "seti", jsdt_sr_pv_seti, 2 /* 2 args */ },
-	{ "sets", jsdt_sr_pv_seti, 2 /* 2 args */ },
+	{ "sets", jsdt_sr_pv_sets, 2 /* 2 args */ },
 	{ "unset", jsdt_sr_pv_unset, 1 /* 1 args */ },
 	{ "is_null", jsdt_sr_pv_is_null, 1 /* 1 args */ },
 	{ NULL, NULL, 0 }
@@ -432,9 +432,6 @@ int jsdt_sr_init_mod(void)
  */
 int jsdt_sr_init_child(void)
 {
-	int ret;
-	char *txt;
-
 	memset(&_sr_J_env, 0, sizeof(sr_jsdt_env_t));
 	_sr_J_env.J = duk_create_heap_default();
 	if(_sr_J_env.J==NULL) {
@@ -584,7 +581,6 @@ int app_jsdt_run(sip_msg_t *msg, char *func, char *p1, char *p2,
 int app_jsdt_runstring(sip_msg_t *msg, char *script)
 {
 	int ret;
-	char *txt;
 	sip_msg_t *bmsg;
 
 	if(_sr_J_env.JJ==NULL) {




More information about the sr-dev mailing list