summaryrefslogtreecommitdiff
path: root/lib/ipmi_channel.c
diff options
context:
space:
mode:
authorZdenek Styblik <stybla@turnovfree.net>2014-12-30 08:00:23 +0100
committerZdenek Styblik <stybla@turnovfree.net>2014-12-30 08:00:23 +0100
commit48117f5ddff03275edaec861164760c53453f4f0 (patch)
treec15b7e411d317ecd7ac8fda14c30c559d3f533b9 /lib/ipmi_channel.c
parent70984dcad503a28baed2a269aa725b4cfb19251e (diff)
downloadipmitool-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.c2
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;