[sr-dev] git:master: tm: t_reply() first param. can be any var. type

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Jul 6 12:36:20 CEST 2009


Module: sip-router
Branch: master
Commit: ed6838004eef2734a1a9667bbe56526de1463bf2
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ed6838004eef2734a1a9667bbe56526de1463bf2

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Mon Jul  6 12:36:22 2009 +0200

tm: t_reply() first param. can be any var. type

Switched first param. fixup to fixup_var_int_12(), thus allowing
 it to be a pvar.

---

 modules/tm/tm.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/tm/tm.c b/modules/tm/tm.c
index e769b75..034b8c7 100644
--- a/modules/tm/tm.c
+++ b/modules/tm/tm.c
@@ -508,12 +508,8 @@ static int fixup_routes(char* r_type, struct route_list* rt, void** param)
 
 static int fixup_t_reply(void** param, int param_no)
 {
-	int ret;
-
 	if (param_no == 1) {
-		ret = fix_param(FPARAM_AVP, param);
-		if (ret <= 0) return ret;
-	    if (fix_param(FPARAM_INT, param) != 0) return -1;
+		if (fixup_var_int_12(param, 1) != 0) return -1;
 	} else if (param_no == 2) {
 	        return fixup_var_str_12(param, 2);
 	}




More information about the sr-dev mailing list