Module: sip-router
Branch: master
Commit: d961145661f0ea20ae799b5cb667d25fe9791a42
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d961145…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri May 29 22:05:03 2009 +0300
pua: use load_tm_api() instead of find_export()/load_tm()
---
modules_k/pua/pua.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/modules_k/pua/pua.c b/modules_k/pua/pua.c
index 8a9f5f7..46dadd3 100644
--- a/modules_k/pua/pua.c
+++ b/modules_k/pua/pua.c
@@ -147,8 +147,6 @@ struct module_exports exports= {
*/
static int mod_init(void)
{
- load_tm_f load_tm;
-
LM_DBG("...\n");
if(min_expires< 0)
@@ -157,15 +155,8 @@ static int mod_init(void)
if(default_expires< 600)
default_expires= 3600;
- /* import the TM auto-loading function */
- if((load_tm=(load_tm_f)find_export("load_tm", 0, 0))==NULL)
- {
- LM_ERR("can't import load_tm\n");
- return -1;
- }
- /* let the auto-loading function load all TM stuff */
-
- if(load_tm(&tmb)==-1)
+ /* load TM API */
+ if(load_tm_api(&tmb)==-1)
{
LM_ERR("can't load tm functions\n");
return -1;