Browse Source

tm_shutdown is called now!

Bogdan-Andrei Iancu 24 years ago
parent
commit
572188faa8
3 changed files with 4 additions and 13 deletions
  1. 1 3
      modules/tm/t_funcs.c
  2. 2 2
      modules/tm/t_funcs.h
  3. 1 8
      modules/tm/tm.c

+ 1 - 3
modules/tm/t_funcs.c

@@ -46,12 +46,10 @@ int tm_startup()
 
 
 
-int tm_shutdown()
+void tm_shutdown()
 {
     /* destroy the hash table */
     free_hash_table( hash_table );
-
-   return 0;
 }
 
 

+ 2 - 2
modules/tm/t_funcs.h

@@ -32,8 +32,8 @@ struct cell;
 #define MAX_ACK_LEN 1024
 
 
-int tm_startup();
-int tm_shutdown();
+int   tm_startup();
+void tm_shutdown();
 
 
 /* function returns:

+ 1 - 8
modules/tm/tm.c

@@ -28,7 +28,6 @@ static int w_t_release(struct sip_msg* msg, char* str, char* str2);
 static int fixup_t_forward(void** param, int param_no);
 static int fixup_t_forward_def(void** param, int param_no);
 static int fixup_t_send_reply(void** param, int param_no);
-static void tm_destroy_module();
 
 static struct module_exports nm_exports= {
 	"tm_module",
@@ -73,7 +72,7 @@ static struct module_exports nm_exports= {
 		},
 	8,
 	(response_function) t_on_reply_received,
-	(destroy_function) tm_destroy_module
+	(destroy_function) tm_shutdown
 };
 
 
@@ -221,9 +220,3 @@ static int w_t_release(struct sip_msg* msg, char* str, char* str2)
 	return t_release_transaction(msg);
 }
 
-
-static void tm_destroy_module()
-{
-	LOG(L_CRIT, "BUG: tm_destroy_module not implemented yet -FIX FIX FIX\n");
-}
-