slirp: use %p for pointers format
This fixes some compilation warnings on mingw64. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
039d5b6312
commit
3402618c3a
@ -390,7 +390,7 @@ void icmp6_input(struct mbuf *m)
|
|||||||
int hlen = sizeof(struct ip6);
|
int hlen = sizeof(struct ip6);
|
||||||
|
|
||||||
DEBUG_CALL("icmp6_input");
|
DEBUG_CALL("icmp6_input");
|
||||||
DEBUG_ARG("m = %lx", (long) m);
|
DEBUG_ARG("m = %p", m);
|
||||||
DEBUG_ARG("m_len = %d", m->m_len);
|
DEBUG_ARG("m_len = %d", m->m_len);
|
||||||
|
|
||||||
if (ntohs(ip->ip_pl) < ICMP6_MINLEN) {
|
if (ntohs(ip->ip_pl) < ICMP6_MINLEN) {
|
||||||
|
@ -31,7 +31,7 @@ void ip6_input(struct mbuf *m)
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_CALL("ip6_input");
|
DEBUG_CALL("ip6_input");
|
||||||
DEBUG_ARG("m = %lx", (long)m);
|
DEBUG_ARG("m = %p", m);
|
||||||
DEBUG_ARG("m_len = %d", m->m_len);
|
DEBUG_ARG("m_len = %d", m->m_len);
|
||||||
|
|
||||||
if (m->m_len < sizeof(struct ip6)) {
|
if (m->m_len < sizeof(struct ip6)) {
|
||||||
|
@ -19,8 +19,8 @@ int ip6_output(struct socket *so, struct mbuf *m, int fast)
|
|||||||
struct ip6 *ip = mtod(m, struct ip6 *);
|
struct ip6 *ip = mtod(m, struct ip6 *);
|
||||||
|
|
||||||
DEBUG_CALL("ip6_output");
|
DEBUG_CALL("ip6_output");
|
||||||
DEBUG_ARG("so = %lx", (long)so);
|
DEBUG_ARG("so = %p", so);
|
||||||
DEBUG_ARG("m = %lx", (long)m);
|
DEBUG_ARG("m = %p", m);
|
||||||
|
|
||||||
/* Fill IPv6 header */
|
/* Fill IPv6 header */
|
||||||
ip->ip_v = IP6VERSION;
|
ip->ip_v = IP6VERSION;
|
||||||
|
@ -20,7 +20,7 @@ void udp6_input(struct mbuf *m)
|
|||||||
struct sockaddr_in6 lhost;
|
struct sockaddr_in6 lhost;
|
||||||
|
|
||||||
DEBUG_CALL("udp6_input");
|
DEBUG_CALL("udp6_input");
|
||||||
DEBUG_ARG("m = %lx", (long)m);
|
DEBUG_ARG("m = %p", m);
|
||||||
|
|
||||||
if (slirp->restricted) {
|
if (slirp->restricted) {
|
||||||
goto bad;
|
goto bad;
|
||||||
@ -144,8 +144,8 @@ int udp6_output(struct socket *so, struct mbuf *m,
|
|||||||
struct udphdr *uh;
|
struct udphdr *uh;
|
||||||
|
|
||||||
DEBUG_CALL("udp6_output");
|
DEBUG_CALL("udp6_output");
|
||||||
DEBUG_ARG("so = %lx", (long)so);
|
DEBUG_ARG("so = %p", so);
|
||||||
DEBUG_ARG("m = %lx", (long)m);
|
DEBUG_ARG("m = %p", m);
|
||||||
|
|
||||||
/* adjust for header */
|
/* adjust for header */
|
||||||
m->m_data -= sizeof(struct udphdr);
|
m->m_data -= sizeof(struct udphdr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user