Browse Source

ims_auth: declare extern the stats variables in header file

Daniel-Constantin Mierla 5 years ago
parent
commit
8156dd87a9
2 changed files with 7 additions and 3 deletions
  1. 4 0
      src/modules/ims_auth/ims_auth_mod.c
  2. 3 3
      src/modules/ims_auth/stats.h

+ 4 - 0
src/modules/ims_auth/ims_auth_mod.c

@@ -62,6 +62,10 @@
 
 MODULE_VERSION
 
+stat_var* stat_mar_timeouts = NULL;
+stat_var* mar_replies_received = NULL;
+stat_var* mar_replies_response_time = NULL;
+
 static void destroy(void);
 static int mod_init(void);
 

+ 3 - 3
src/modules/ims_auth/stats.h

@@ -47,9 +47,9 @@
 #include "../../core/counters.h"
 #include "ims_auth_mod.h"
 
-stat_var* stat_mar_timeouts;
-stat_var* mar_replies_received;
-stat_var* mar_replies_response_time;
+extern stat_var* stat_mar_timeouts;
+extern stat_var* mar_replies_received;
+extern stat_var* mar_replies_response_time;
 
 int register_stats();
 unsigned long get_avg_mar_response_time();