Browse Source

pua: use load_tm_api() instead of find_export()/load_tm()

Daniel-Constantin Mierla 16 years ago
parent
commit
d961145661
1 changed files with 2 additions and 11 deletions
  1. 2 11
      modules_k/pua/pua.c

+ 2 - 11
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;