浏览代码

ims_auth: declare extern the stats variables in header file

Daniel-Constantin Mierla 5 年之前
父节点
当前提交
8156dd87a9
共有 2 个文件被更改,包括 7 次插入3 次删除
  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();