forked from Imagelibrary/rtems
2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/netinet/raw_ip.c, libnetworking/netinet/udp_usrreq.c: Cast mbufs to uintptr_t instead of u_long.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libnetworking/netinet/raw_ip.c,
|
||||
libnetworking/netinet/udp_usrreq.c:
|
||||
Cast mbufs to uintptr_t instead of u_long.
|
||||
* libnetworking/rtems/rtems_mii_ioctl.h,
|
||||
libnetworking/rtems/rtems_mii_ioctl_kern.c:
|
||||
Use uint32_t instead of int as ioctl cmd arg.
|
||||
|
||||
@@ -336,7 +336,7 @@ rip_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
|
||||
int s;
|
||||
|
||||
if (req == PRU_CONTROL)
|
||||
return (in_control(so, (u_long)m, (caddr_t)nam,
|
||||
return (in_control(so, (uintptr_t)m, (caddr_t)nam,
|
||||
(struct ifnet *)control));
|
||||
|
||||
switch (req) {
|
||||
|
||||
@@ -594,7 +594,7 @@ udp_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *addr,
|
||||
int s;
|
||||
|
||||
if (req == PRU_CONTROL)
|
||||
return (in_control(so, (u_long)m, (caddr_t)addr,
|
||||
return (in_control(so, (uintptr_t)m, (caddr_t)addr,
|
||||
(struct ifnet *)control));
|
||||
if (inp == NULL && req != PRU_ATTACH) {
|
||||
error = EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user