compile fix. see previous revision diff and comment for code change reason

This commit is contained in:
Ales Ledvinka 2013-02-20 14:35:07 +00:00
parent fd2ab0b7bb
commit b6c97d8318
2 changed files with 4 additions and 4 deletions

View File

@ -130,9 +130,9 @@ ipmi_chassis_identify(struct ipmi_intf * intf, char * arg)
int rc = (-3);
struct {
uint8_t interval = 0;
uint8_t force_on = 0;
} identify_data;
uint8_t interval;
uint8_t force_on;
} identify_data = { .interval = 0, .force_on = 0 };
memset(&req, 0, sizeof(req));
req.msg.netfn = IPMI_NETFN_CHASSIS;

View File

@ -667,7 +667,7 @@ ipmi_lcd_get_platform_model_name(struct ipmi_intf * intf, char* lcdstring,
if (rc < 0) {
lprintf(LOG_ERR, " Error getting platform model name");
break;
} else if (rc_tmp > 0) {
} else if (rc > 0) {
lprintf(LOG_ERR, " Error getting platform model name: %s",
val2str(rc, completion_code_vals));
break;