projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'collectd-4.5'
[collectd.git]
/
src
/
utils_complain.h
diff --git
a/src/utils_complain.h
b/src/utils_complain.h
index
e93d823
..
b51a81c
100644
(file)
--- a/
src/utils_complain.h
+++ b/
src/utils_complain.h
@@
-39,7
+39,8
@@
typedef struct
int interval;
} c_complain_t;
-#define C_COMPLAIN_INIT { 0, 0 }
+#define C_COMPLAIN_INIT_STATIC { 0, 0 }
+#define C_COMPLAIN_INIT(c) do { (c)->last = 0; (c)->interval = 0; } while (0)
/*
* NAME