mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:59:07 +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;
|
||||
|
@@ -166,7 +166,7 @@ pcblist_kvm(u_long count_off, u_long gencnt_off, u_long head_off, char **bufp)
|
||||
xu.xu_len = sizeof xu;
|
||||
KREAD(head_off, &head, sizeof(head));
|
||||
LIST_FOREACH(unp, &head, unp_link) {
|
||||
xu.xu_unpp = unp;
|
||||
xu.xu_unpp = (uintptr_t)unp;
|
||||
KREAD(unp, &unp0, sizeof (*unp));
|
||||
unp = &unp0;
|
||||
|
||||
|
Reference in New Issue
Block a user