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:
Zdenek Styblik 2015-01-22 12:55:26 +01:00
parent 03d8aa1882
commit 32c4690950

View File

@ -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 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];
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 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];
if (argc < 1) {