[sr-dev] git:master:15d5676f: ims_dialog: declare extern dlg stats structure in header file
Daniel-Constantin Mierla
miconda at gmail.com
Tue Mar 3 11:41:20 CET 2020
Module: kamailio
Branch: master
Commit: 15d5676fd7b6d64616fbf8ebf9517f0d56a47f5c
URL: https://github.com/kamailio/kamailio/commit/15d5676fd7b6d64616fbf8ebf9517f0d56a47f5c
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-03-03T11:40:40+01:00
ims_dialog: declare extern dlg stats structure in header file
---
Modified: src/modules/ims_dialog/dlg_ng_stats.c
Modified: src/modules/ims_dialog/dlg_ng_stats.h
---
Diff: https://github.com/kamailio/kamailio/commit/15d5676fd7b6d64616fbf8ebf9517f0d56a47f5c.diff
Patch: https://github.com/kamailio/kamailio/commit/15d5676fd7b6d64616fbf8ebf9517f0d56a47f5c.patch
---
diff --git a/src/modules/ims_dialog/dlg_ng_stats.c b/src/modules/ims_dialog/dlg_ng_stats.c
index 6cc2a9ebdd..744a394dc8 100644
--- a/src/modules/ims_dialog/dlg_ng_stats.c
+++ b/src/modules/ims_dialog/dlg_ng_stats.c
@@ -1,6 +1,6 @@
#include "dlg_ng_stats.h"
-struct dialog_ng_counters_h dialog_ng_cnts_h;
+struct dialog_ng_counters_h dialog_ng_cnts_h = {0};
/* dialog_ng counters definitions */
counter_def_t dialog_ng_cnt_defs[] = {
@@ -31,4 +31,4 @@ int dialog_ng_stats_init()
void dialog_ng_stats_destroy()
{
/* do nothing */
-}
\ No newline at end of file
+}
diff --git a/src/modules/ims_dialog/dlg_ng_stats.h b/src/modules/ims_dialog/dlg_ng_stats.h
index f162a34886..9dfd53a182 100644
--- a/src/modules/ims_dialog/dlg_ng_stats.h
+++ b/src/modules/ims_dialog/dlg_ng_stats.h
@@ -11,9 +11,9 @@ struct dialog_ng_counters_h {
};
-struct dialog_ng_counters_h dialog_ng_cnts_h;
+extern struct dialog_ng_counters_h dialog_ng_cnts_h;
int dialog_ng_stats_init();
void dialog_ng_stats_destroy();
-#endif /* DIALOG_NG_STATS_H */
\ No newline at end of file
+#endif /* DIALOG_NG_STATS_H */
More information about the sr-dev
mailing list