mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:383 - Fix compile-time error in src/plugins/lan/lan.c
Patch fixes an error of incompatible pointer type which appears during LAN plugin compilation. Commit for: Dmitry Bazhenov
This commit is contained in:
parent
ff80a188f3
commit
0d8f9a7453
@ -2027,7 +2027,6 @@ ipmi_lan_open(struct ipmi_intf * intf)
|
||||
int rc;
|
||||
struct ipmi_session *s;
|
||||
struct ipmi_session_params *p;
|
||||
struct sockaddr_storage addr;
|
||||
|
||||
if (intf == NULL || intf->opened)
|
||||
return -1;
|
||||
@ -2070,7 +2069,7 @@ ipmi_lan_open(struct ipmi_intf * intf)
|
||||
s->timeout = p->timeout;
|
||||
memcpy(&s->authcode, &p->authcode_set, sizeof(s->authcode));
|
||||
s->addrlen = sizeof(s->addr);
|
||||
if (getsockname(intf->fd, &s->addr, &s->addrlen)) {
|
||||
if (getsockname(intf->fd, (struct sockaddr *)&s->addr, &s->addrlen)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user