mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
compile fix. see previous revision diff and comment for code change reason
This commit is contained in:
parent
fd2ab0b7bb
commit
b6c97d8318
@ -130,9 +130,9 @@ ipmi_chassis_identify(struct ipmi_intf * intf, char * arg)
|
|||||||
int rc = (-3);
|
int rc = (-3);
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
uint8_t interval = 0;
|
uint8_t interval;
|
||||||
uint8_t force_on = 0;
|
uint8_t force_on;
|
||||||
} identify_data;
|
} identify_data = { .interval = 0, .force_on = 0 };
|
||||||
|
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
req.msg.netfn = IPMI_NETFN_CHASSIS;
|
req.msg.netfn = IPMI_NETFN_CHASSIS;
|
||||||
|
@ -667,7 +667,7 @@ ipmi_lcd_get_platform_model_name(struct ipmi_intf * intf, char* lcdstring,
|
|||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
lprintf(LOG_ERR, " Error getting platform model name");
|
lprintf(LOG_ERR, " Error getting platform model name");
|
||||||
break;
|
break;
|
||||||
} else if (rc_tmp > 0) {
|
} else if (rc > 0) {
|
||||||
lprintf(LOG_ERR, " Error getting platform model name: %s",
|
lprintf(LOG_ERR, " Error getting platform model name: %s",
|
||||||
val2str(rc, completion_code_vals));
|
val2str(rc, completion_code_vals));
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user