summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f0c37ce)
raw | patch | inline | side by side (parent: f0c37ce)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 1 Aug 2016 20:22:35 +0000 (22:22 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 1 Aug 2016 20:22:35 +0000 (22:22 +0200) |
src/ipmi.c | patch | blob | history |
diff --git a/src/ipmi.c b/src/ipmi.c
index 8b957e50584d932b9dda3cfc6a1a76ed493c4714..2fee9f280a0c01a69770129a19046a1345d72484 100644 (file)
--- a/src/ipmi.c
+++ b/src/ipmi.c
static int thread_init (os_handler_t **ret_os_handler)
{
os_handler_t *os_handler;
- ipmi_open_option_t open_option[1] = { 0 };
ipmi_con_t *smi_connection = NULL;
ipmi_domain_id_t domain_id;
int status;
return (-1);
}
- open_option[0].option = IPMI_OPEN_OPTION_ALL;
- open_option[0].ival = 1;
+ ipmi_open_option_t open_option[ ] = {
+ [0] = {
+ .option = IPMI_OPEN_OPTION_ALL,
+ .ival = 1
+ }
+ };
status = ipmi_open_domain ("mydomain", &smi_connection, /* num_con = */ 1,
domain_connection_change_handler, /* user data = */ NULL,