diff options
author | Zdenek Styblik <stybla@turnovfree.net> | 2014-12-30 08:00:23 +0100 |
---|---|---|
committer | Zdenek Styblik <stybla@turnovfree.net> | 2014-12-30 08:00:23 +0100 |
commit | 48117f5ddff03275edaec861164760c53453f4f0 (patch) | |
tree | c15b7e411d317ecd7ac8fda14c30c559d3f533b9 /lib/ipmi_channel.c | |
parent | 70984dcad503a28baed2a269aa725b4cfb19251e (diff) | |
download | ipmitool-48117f5ddff03275edaec861164760c53453f4f0.tar.gz |
ID:355 - Fix ``ISO C forbids omitting the middle term of a ?: expression''
Commit fixes omitted middle terms of ternary expressions.
Diffstat (limited to 'lib/ipmi_channel.c')
-rw-r--r-- | lib/ipmi_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipmi_channel.c b/lib/ipmi_channel.c index 9b8c2a9..ec10891 100644 --- a/lib/ipmi_channel.c +++ b/lib/ipmi_channel.c @@ -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; |