Skip to content

Commit

Permalink
ims_dialog: declare extern dlg stats structure in header file
Browse files Browse the repository at this point in the history
(cherry picked from commit 15d5676)
  • Loading branch information
miconda authored and henningw committed May 13, 2020
1 parent 28f6d74 commit b91953f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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[] = {
Expand Down Expand Up @@ -31,4 +31,4 @@ int dialog_ng_stats_init()
void dialog_ng_stats_destroy()
{
/* do nothing */
}
}
4 changes: 2 additions & 2 deletions src/modules/ims_dialog/dlg_ng_stats.h
Expand Up @@ -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 */
#endif /* DIALOG_NG_STATS_H */

0 comments on commit b91953f

Please sign in to comment.