Module: kamailio
Branch: master
Commit: e03a9d965a63756c3ccbdf7f4db5fe475b833dc4
URL:
https://github.com/kamailio/kamailio/commit/e03a9d965a63756c3ccbdf7f4db5fe4…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-01-05T17:37:38+01:00
rtpproxy: fix compiler warnings
rtpproxy.c: In function 'rtpproxy_rpc_list':
rtpproxy.c:627:6: warning: unused variable 'len' [-Wunused-variable]
int len;
^~~
rtpproxy.c:626:6: warning: unused variable 'id_len' [-Wunused-variable]
int id_len;
^~~~~~
rtpproxy.c:625:8: warning: variable 'string' set but not used
[-Wunused-but-set-variable]
char *string, *id;
^~~~~~
---
Modified: src/modules/rtpproxy/rtpproxy.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e03a9d965a63756c3ccbdf7f4db5fe4…
Patch:
https://github.com/kamailio/kamailio/commit/e03a9d965a63756c3ccbdf7f4db5fe4…
---
diff --git a/src/modules/rtpproxy/rtpproxy.c b/src/modules/rtpproxy/rtpproxy.c
index 2a6ef21..61d23e6 100644
--- a/src/modules/rtpproxy/rtpproxy.c
+++ b/src/modules/rtpproxy/rtpproxy.c
@@ -622,13 +622,8 @@ static void rtpproxy_rpc_list(rpc_t* rpc, void* ctx)
{
struct rtpp_set *rtpp_list;
struct rtpp_node *crt_rtpp;
- char *string, *id;
- int id_len;
- int len;
void *vh;
- string = id = 0;
-
if(rtpp_set_list ==NULL)
return;