mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-07-03 18:51:42 +00:00
ID:355 - Fix comparison of unsigned expression
Commit fixes comparison of unsigned expression in ipmi_firewall_reset() and ipmi_firewall_enable_disable().
This commit is contained in:
@@ -1014,7 +1014,8 @@ ipmi_firewall_enable_disable(struct ipmi_intf * intf, int enable, int argc, char
|
|||||||
{
|
{
|
||||||
struct ipmi_function_params p = {0xe, -1, -1, -1, -1};
|
struct ipmi_function_params p = {0xe, -1, -1, -1, -1};
|
||||||
struct bmc_fn_support * bmc_fn_support;
|
struct bmc_fn_support * bmc_fn_support;
|
||||||
unsigned int l, n, c, ret;
|
int ret;
|
||||||
|
unsigned int l, n, c;
|
||||||
unsigned char enables[MAX_COMMAND_BYTES];
|
unsigned char enables[MAX_COMMAND_BYTES];
|
||||||
|
|
||||||
if (argc < 1 || strncmp(argv[0], "help", 4) == 0) {
|
if (argc < 1 || strncmp(argv[0], "help", 4) == 0) {
|
||||||
@@ -1104,7 +1105,8 @@ ipmi_firewall_reset(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
{
|
{
|
||||||
struct ipmi_function_params p = {0xe, -1, -1, -1, -1};
|
struct ipmi_function_params p = {0xe, -1, -1, -1, -1};
|
||||||
struct bmc_fn_support * bmc_fn_support;
|
struct bmc_fn_support * bmc_fn_support;
|
||||||
unsigned int l, n, c, ret;
|
int ret;
|
||||||
|
unsigned int l, n, c;
|
||||||
unsigned char enables[MAX_COMMAND_BYTES];
|
unsigned char enables[MAX_COMMAND_BYTES];
|
||||||
|
|
||||||
if (argc < 1) {
|
if (argc < 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user