X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_complain.h;h=b51a81c677a10d8777ca2d22b2ff7503093e0704;hb=db4f7362efcfd89447c950c945f789a44d6e55a5;hp=e93d823e2ae8a52cb30cb15ff4be67c57308a184;hpb=66b7c4bce4e628d8c11cc6762621f155bd68536d;p=collectd.git diff --git a/src/utils_complain.h b/src/utils_complain.h index e93d823e..b51a81c6 100644 --- 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