mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-28 08:11:36 +00:00
ID:355 - Fix ``ISO C forbids omitting the middle term of a ?: expression''
Commit fixes omitted middle terms of ternary expressions.
This commit is contained in:
@@ -360,7 +360,7 @@ ipmi_get_user_access(struct ipmi_intf *intf, uint8_t channel, uint8_t userid)
|
||||
int max_uid = 0;
|
||||
int init = 1;
|
||||
|
||||
curr_uid = userid ? : 1;
|
||||
curr_uid = userid ? userid : 1;
|
||||
|
||||
memset(&req1, 0, sizeof(req1));
|
||||
req1.msg.netfn = IPMI_NETFN_APP;
|
||||
|
||||
@@ -2919,7 +2919,7 @@ ipmi_sel_show_entry(struct ipmi_intf * intf, int argc, char ** argv)
|
||||
|
||||
/* print SDR entry */
|
||||
oldv = verbose;
|
||||
verbose = verbose ? : 1;
|
||||
verbose = verbose ? verbose : 1;
|
||||
switch (sdr->type) {
|
||||
case SDR_RECORD_TYPE_FULL_SENSOR:
|
||||
case SDR_RECORD_TYPE_COMPACT_SENSOR:
|
||||
|
||||
Reference in New Issue
Block a user