From 6d62a1c6abfa7cf6c789623aa6ebaf3b561556f9 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 2 Aug 2016 09:52:43 +0200 Subject: [PATCH] ipmi: fix building with older gcc's --- src/ipmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } } }; -- 2.30.2