Module: kamailio
Branch: 5.1
Commit: 70bc83c52c6bfe38fd5daa60c3aa449521a063fa
URL:
https://github.com/kamailio/kamailio/commit/70bc83c52c6bfe38fd5daa60c3aa449…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-01-22T11:27:19+01:00
siptrace: fixed unused variable warnings
(cherry picked from commit 7dae4ec9e4be87d5a3406fe2ddeb98328beb1125)
---
Modified: src/modules/siptrace/siptrace.c
Modified: src/modules/siptrace/siptrace_send.h
---
Diff:
https://github.com/kamailio/kamailio/commit/70bc83c52c6bfe38fd5daa60c3aa449…
Patch:
https://github.com/kamailio/kamailio/commit/70bc83c52c6bfe38fd5daa60c3aa449…
---
diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c
index 924c4f52e7..851bf6e0f8 100644
--- a/src/modules/siptrace/siptrace.c
+++ b/src/modules/siptrace/siptrace.c
@@ -1016,7 +1016,6 @@ static void trace_onreq_out(struct cell *t, int type, struct
tmcb_params *ps)
siptrace_data_t sto;
sip_msg_t *msg;
ip_addr_t to_ip;
- int len;
dest_info_t *dst;
if(t == NULL || ps == NULL) {
@@ -1334,7 +1333,6 @@ static void trace_sl_onreply_out(sl_cbp_t *slcbp)
siptrace_data_t sto;
sip_msg_t *msg;
ip_addr_t to_ip;
- int len;
char statusbuf[5];
if(slcbp == NULL || slcbp->req == NULL) {
diff --git a/src/modules/siptrace/siptrace_send.h b/src/modules/siptrace/siptrace_send.h
index 30c33e53b5..867d3995b0 100644
--- a/src/modules/siptrace/siptrace_send.h
+++ b/src/modules/siptrace/siptrace_send.h
@@ -68,8 +68,9 @@ int trace_send_duplicate(char *buf, int len, struct dest_info *dst2);
#define siptrace_copy_proto(vproto, vbuf) do { \
int __olen; \
siptrace_copy_proto_olen(vproto, vbuf, __olen); \
+ (void)__olen; \
} while(0)
char* siptrace_proto_name(int vproto);
-#endif
\ No newline at end of file
+#endif