From: Ruben Kerkhof Date: Tue, 2 Aug 2016 07:52:43 +0000 (+0200) Subject: ipmi: fix building with older gcc's X-Git-Tag: collectd-5.6.0~132^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6d62a1c6abfa7cf6c789623aa6ebaf3b561556f9;p=collectd.git ipmi: fix building with older gcc's --- diff --git a/src/ipmi.c b/src/ipmi.c index a5057d36..1422077b 100644 --- a/src/ipmi.c +++ b/src/ipmi.c @@ -547,6 +547,7 @@ static void domain_connection_change_handler (ipmi_domain_t *domain, static int thread_init (os_handler_t **ret_os_handler) { os_handler_t *os_handler; + ipmi_open_option_t open_option[1]; ipmi_con_t *smi_connection = NULL; ipmi_domain_id_t domain_id; int status; @@ -573,7 +574,7 @@ static int thread_init (os_handler_t **ret_os_handler) ipmi_open_option_t open_option[1] = { [0] = { .option = IPMI_OPEN_OPTION_ALL, - .ival = 1 + { .ival = 1 } } };