mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-07-04 11:43:35 +00:00
channel: Refactor set_user_access option processing
Reduce code duplication by extracting option names, types, and value ranges into a separate structure, and rewriting the option parsing code without mixing it with the data. Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
This commit is contained in:
committed by
Alexander Amelkin
parent
6e037d6bfb
commit
e3fc775d26
@ -1031,8 +1031,8 @@ const struct valstr ipmi_privlvl_vals[] = {
|
||||
{ IPMI_SESSION_PRIV_OPERATOR, "OPERATOR" },
|
||||
{ IPMI_SESSION_PRIV_ADMIN, "ADMINISTRATOR" },
|
||||
{ IPMI_SESSION_PRIV_OEM, "OEM" },
|
||||
{ 0xF, "NO ACCESS" },
|
||||
{ 0xFF, NULL },
|
||||
{ IPMI_SESSION_PRIV_NOACCESS, "NO ACCESS" },
|
||||
{ UINT8_MAX, NULL },
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user