Fix compiler warning

Refactor plugin ipmi_intf structure initialization for some
plugins to stop the compiler complaining like this:

warning: use of GNU old-style field designator
extension [-Wgnu-designator]

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
This commit is contained in:
Alexander Amelkin 2021-04-07 00:50:44 +03:00
parent 69cdef116a
commit 87fc969e45
No known key found for this signature in database
GPG Key ID: E893587B5B74178D
3 changed files with 18 additions and 17 deletions

View File

@ -68,11 +68,12 @@ static struct ipmi_rs *ipmi_bmc_send_cmd_putmsg(struct ipmi_intf *intf,
#define MESSAGE_BUFSIZE 1024
struct ipmi_intf ipmi_bmc_intf = {
name: "bmc",
desc: "IPMI v2.0 BMC interface",
open: ipmi_bmc_open,
close: ipmi_bmc_close,
sendrecv: ipmi_bmc_send_cmd};
.name = "bmc",
.desc = "IPMI v2.0 BMC interface",
.open = ipmi_bmc_open,
.close = ipmi_bmc_close,
.sendrecv = ipmi_bmc_send_cmd
};
void
ipmi_bmc_close(struct ipmi_intf *intf)

View File

@ -310,11 +310,11 @@ static struct ipmi_rs * ipmi_free_send_cmd(struct ipmi_intf * intf, struct ipmi_
}
struct ipmi_intf ipmi_free_intf = {
name: "free",
desc: "FreeIPMI IPMI Interface",
open: ipmi_free_open,
close: ipmi_free_close,
sendrecv: ipmi_free_send_cmd,
target_addr: IPMI_BMC_SLAVE_ADDR,
.name = "free",
.desc = "FreeIPMI IPMI Interface",
.open = ipmi_free_open,
.close = ipmi_free_close,
.sendrecv = ipmi_free_send_cmd,
.target_addr = IPMI_BMC_SLAVE_ADDR,
};

View File

@ -119,11 +119,11 @@ static struct ipmi_rs * ipmi_lipmi_send_cmd(struct ipmi_intf * intf, struct ipmi
}
struct ipmi_intf ipmi_lipmi_intf = {
name: "lipmi",
desc: "Solaris x86 LIPMI Interface",
open: ipmi_lipmi_open,
close: ipmi_lipmi_close,
sendrecv: ipmi_lipmi_send_cmd,
target_addr: IPMI_BMC_SLAVE_ADDR,
.name = "lipmi",
.desc = "Solaris x86 LIPMI Interface",
.open = ipmi_lipmi_open,
.close = ipmi_lipmi_close,
.sendrecv = ipmi_lipmi_send_cmd,
.target_addr = IPMI_BMC_SLAVE_ADDR,
};