Module: kamailio
Branch: master
Commit: 1f7f96d093f333e07fb6d79156c1f15f32030255
URL:
https://github.com/kamailio/kamailio/commit/1f7f96d093f333e07fb6d79156c1f15…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-07-31T11:46:36+02:00
http_client: removed unused variables
---
Modified: modules/http_client/curlcon.c
Modified: modules/http_client/functions.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1f7f96d093f333e07fb6d79156c1f15…
Patch:
https://github.com/kamailio/kamailio/commit/1f7f96d093f333e07fb6d79156c1f15…
---
diff --git a/modules/http_client/curlcon.c b/modules/http_client/curlcon.c
index b2caa4a..08ca03b 100644
--- a/modules/http_client/curlcon.c
+++ b/modules/http_client/curlcon.c
@@ -128,13 +128,12 @@ unsigned int curl_connection_count()
*/
int http_connection_exists(str *name)
{
- curl_con_t *cc;
-
if (curl_get_connection(name) != NULL) {
return 1;
}
- LM_DBG("curl_connection_exists no success in looking for httpcon: [%.*s]\n",
name->len, name->s);
+ LM_DBG("curl_connection_exists no success in looking for httpcon: [%.*s]\n",
+ name->len, name->s);
return 0;
}
diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c
index 3b6e808..71d630d 100644
--- a/modules/http_client/functions.c
+++ b/modules/http_client/functions.c
@@ -610,7 +610,6 @@ char *http_get_content_type(const str *connection)
{
curl_con_t *conn = NULL;
curl_con_pkg_t *pconn = NULL;
- str rval;
/* Find connection if it exists */
if (!connection) {