2
0
Эх сурвалжийг харах

http_client: removed unused variables

Daniel-Constantin Mierla 9 жил өмнө
parent
commit
1f7f96d093

+ 2 - 3
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;
 }
 

+ 0 - 1
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) {