mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 01:55:41 +08:00
Update to FreeBSD head 2018-09-17
Git mirror commit 6c2192b1ef8c50788c751f878552526800b1e319. Update #3472.
This commit is contained in:
@@ -171,12 +171,12 @@ sotoxsocket(struct socket *so, struct xsocket *xso)
|
||||
|
||||
bzero(xso, sizeof *xso);
|
||||
xso->xso_len = sizeof *xso;
|
||||
xso->xso_so = so;
|
||||
xso->xso_so = (uintptr_t)so;
|
||||
xso->so_type = so->so_type;
|
||||
xso->so_options = so->so_options;
|
||||
xso->so_linger = so->so_linger;
|
||||
xso->so_state = so->so_state;
|
||||
xso->so_pcb = so->so_pcb;
|
||||
xso->so_pcb = (uintptr_t)so->so_pcb;
|
||||
if (kread((uintptr_t)so->so_proto, &proto, sizeof(proto)) != 0)
|
||||
return (-1);
|
||||
xso->xso_protocol = proto.pr_protocol;
|
||||
|
Reference in New Issue
Block a user