ipmi: fix building with older gcc's
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 2 Aug 2016 07:52:43 +0000 (09:52 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 2 Aug 2016 07:52:43 +0000 (09:52 +0200)
src/ipmi.c

index a5057d3..1422077 100644 (file)
@@ -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 }
     }
   };