Module: kamailio
Branch: master
Commit: 236c56f5f4c11fb867e545f830182b386f0a0c66
URL: 
https://github.com/kamailio/kamailio/commit/236c56f5f4c11fb867e545f830182b386f0a0c66

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-01-24T09:19:57+01:00

tm: prefixed global kill reason variable

---

Modified: src/modules/tm/h_table.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/236c56f5f4c11fb867e545f830182b386f0a0c66.diff
Patch: 
https://github.com/kamailio/kamailio/commit/236c56f5f4c11fb867e545f830182b386f0a0c66.patch

---

diff --git a/src/modules/tm/h_table.c b/src/modules/tm/h_table.c
index 2d21eb12eca..7ee7c67470c 100644
--- a/src/modules/tm/h_table.c
+++ b/src/modules/tm/h_table.c
@@ -52,7 +52,7 @@
                                                - sizeof(((tm_cell_t 
*)0)->md5)))
 
 
-static enum kill_reason kr;
+static enum kill_reason _tm_kr;
 
 /* pointer to the big table where all the transaction data lives */
 struct s_table *_tm_table;
@@ -64,18 +64,18 @@ struct s_table *tm_get_table(void)
 
 void reset_kr(void)
 {
-       kr = 0;
+       _tm_kr = 0;
 }
 
 void set_kr(enum kill_reason _kr)
 {
-       kr |= _kr;
+       _tm_kr |= _kr;
 }
 
 
 enum kill_reason get_kr()
 {
-       return kr;
+       return _tm_kr;
 }
 
 

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to