mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Fix compiling error
This commit is contained in:
parent
ee59c4d0f1
commit
adef82354e
@ -877,6 +877,7 @@ ipmi_firewall_info(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
ret = _gather_info(intf, &p, bmc_fn_support);
|
ret = _gather_info(intf, &p, bmc_fn_support);
|
||||||
|
|
||||||
if (p.command >= 0) {
|
if (p.command >= 0) {
|
||||||
|
struct command_support * cmd;
|
||||||
if (!((p.lun < 0 || bmc_fn_support->lun[p.lun].support) &&
|
if (!((p.lun < 0 || bmc_fn_support->lun[p.lun].support) &&
|
||||||
(p.netfn < 0 || bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].support) &&
|
(p.netfn < 0 || bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].support) &&
|
||||||
bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command].support))
|
bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command].support))
|
||||||
@ -886,7 +887,7 @@ ipmi_firewall_info(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
free(bmc_fn_support);
|
free(bmc_fn_support);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
struct command_support * cmd =
|
cmd =
|
||||||
&bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command];
|
&bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command];
|
||||||
c = cmd->support;
|
c = cmd->support;
|
||||||
printf("(A)vailable, (C)onfigurable, (E)nabled: | A | C | E |\n");
|
printf("(A)vailable, (C)onfigurable, (E)nabled: | A | C | E |\n");
|
||||||
|
@ -2456,14 +2456,16 @@ ipmi_lanplus_recv_sol(struct ipmi_intf * intf)
|
|||||||
{
|
{
|
||||||
struct ipmi_rs * rsp = ipmi_lan_poll_recv(intf);
|
struct ipmi_rs * rsp = ipmi_lan_poll_recv(intf);
|
||||||
|
|
||||||
ack_sol_packet(intf, rsp);
|
if(rsp->session.authtype != 0)
|
||||||
|
{
|
||||||
/*
|
ack_sol_packet(intf, rsp);
|
||||||
* Remembers the data sent, and alters the data to just
|
|
||||||
* include the new stuff.
|
|
||||||
*/
|
|
||||||
check_sol_packet_for_new_data(intf, rsp);
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Remembers the data sent, and alters the data to just
|
||||||
|
* include the new stuff.
|
||||||
|
*/
|
||||||
|
check_sol_packet_for_new_data(intf, rsp);
|
||||||
|
}
|
||||||
return rsp;
|
return rsp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user