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:
Zdenek Styblik
2014-12-30 08:00:23 +01:00
parent 70984dcad5
commit 48117f5ddf
3 changed files with 7 additions and 7 deletions

View File

@@ -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;

View File

@@ -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: