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

tm: fix warnings/eliminate unused variables

Eliminate initialized, but unused variables (reported by gcc 4.6).
Andrei Pelinescu-Onciul 14 жил өмнө
parent
commit
b6cb882368

+ 0 - 2
modules/tm/t_lookup.c

@@ -503,7 +503,6 @@ int t_lookup_request( struct sip_msg* p_msg , int leave_new_locked,
 	struct cell         *p_cell;
 	unsigned int       isACK;
 	struct sip_msg  *t_msg;
-	int ret;
 	struct via_param *branch;
 	int match_status;
 	struct cell *e2e_ack_trans;
@@ -529,7 +528,6 @@ int t_lookup_request( struct sip_msg* p_msg , int leave_new_locked,
 
 
 	/* assume not found */
-	ret=-1;
 	e2e_ack_trans = 0;
 
 	/* first of all, look if there is RFC3261 magic cookie in branch; if

+ 0 - 4
modules/tm/timer.h

@@ -241,14 +241,10 @@ inline static void change_retr(struct cell* t, int now,
 								ticks_t rt_t1, ticks_t rt_t2)
 {
 	int i;
-	ticks_t new_rt1_expire, new_rt2_expire, crt;
 
 	if (rt_t1) t->rt_t1_timeout=rt_t1;
 	if (rt_t2) t->rt_t2_timeout=rt_t2;
 	if (now){
-		crt=get_ticks_raw();
-		new_rt1_expire=crt+rt_t1;
-		new_rt2_expire=crt+rt_t2;
 		for (i=0; i<t->nr_of_outgoings; i++){
 			if (t->uac[i].request.t_active){ 
 					if ((t->uac[i].request.flags & F_RB_T2) && rt_t2)