#define STAT_CNT_NUM 1
#endif
-typedef struct _counter_t {
+typedef struct counter_t {
unsigned cnt[STAT_CNT_NUM];
} counter_t;
static inline int cnt_cmp(const counter_t *a, const counter_t *b)
{
int i;
- unsigned va, vb;
+ unsigned va = 0;
+ unsigned vb = 0;
for (i = STAT_CNT_NUM - 1 ; i >= 0; --i) {
va = a->cnt[i];