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

siptrace: fixed unused variable warnings

Daniel-Constantin Mierla 7 жил өмнө
parent
commit
7dae4ec9e4

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

+ 2 - 1
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
+#endif