mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ipmi_get_user_access() - change var name 'userid' to 'user_id'
Commit changes variable/param name from 'userid' to 'user_id' in order to keep consistency.
This commit is contained in:
parent
585cb7c83d
commit
69f668309b
@ -354,12 +354,12 @@ ipmi_get_channel_info(struct ipmi_intf *intf, uint8_t channel)
|
|||||||
*
|
*
|
||||||
* @intf - IPMI interface
|
* @intf - IPMI interface
|
||||||
* @channel - IPMI Channel we're getting access for
|
* @channel - IPMI Channel we're getting access for
|
||||||
* @userid - User ID. If 0 is passed, all IPMI users will be listed
|
* @user_id - User ID. If 0 is passed, all IPMI users will be listed
|
||||||
*
|
*
|
||||||
* returns - 0 on success, (-1) on error
|
* returns - 0 on success, (-1) on error
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
ipmi_get_user_access(struct ipmi_intf *intf, uint8_t channel, uint8_t userid)
|
ipmi_get_user_access(struct ipmi_intf *intf, uint8_t channel, uint8_t user_id)
|
||||||
{
|
{
|
||||||
struct user_access_t user_access;
|
struct user_access_t user_access;
|
||||||
struct user_name_t user_name;
|
struct user_name_t user_name;
|
||||||
@ -368,7 +368,7 @@ ipmi_get_user_access(struct ipmi_intf *intf, uint8_t channel, uint8_t userid)
|
|||||||
int init = 1;
|
int init = 1;
|
||||||
int max_uid = 0;
|
int max_uid = 0;
|
||||||
|
|
||||||
curr_uid = userid ? userid : 1;
|
curr_uid = user_id ? user_id : 1;
|
||||||
do {
|
do {
|
||||||
memset(&user_access, 0, sizeof(user_access));
|
memset(&user_access, 0, sizeof(user_access));
|
||||||
user_access.channel = channel;
|
user_access.channel = channel;
|
||||||
@ -410,7 +410,7 @@ ipmi_get_user_access(struct ipmi_intf *intf, uint8_t channel, uint8_t userid)
|
|||||||
val2str(user_access.privilege_limit, ipmi_privlvl_vals));
|
val2str(user_access.privilege_limit, ipmi_privlvl_vals));
|
||||||
|
|
||||||
curr_uid ++;
|
curr_uid ++;
|
||||||
} while (!userid && curr_uid <= max_uid);
|
} while (!user_id && curr_uid <= max_uid);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user