aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-09-04 23:20:35 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2012-09-13 12:38:14 +0200
commit9f12aed390fefdc61e6224d5cd56b111ea4e22e2 (patch)
treee904531994642d34cd26a8e0e42ffbdc5dafe6f0
parentd4ac79c980eb02a0fa0e3f60e300473f9242ab8a (diff)
downloadslirp-9f12aed390fefdc61e6224d5cd56b111ea4e22e2.zip
slirp-9f12aed390fefdc61e6224d5cd56b111ea4e22e2.tar.gz
slirp-9f12aed390fefdc61e6224d5cd56b111ea4e22e2.tar.bz2
slirp: Remove wrong type casts ins debug statements
The type casts of pointers to long are not allowed when sizeof(pointer) != sizeof(long). Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
-rw-r--r--tcp_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tcp_subr.c b/tcp_subr.c
index 8e1e772..ae319d9 100644
--- a/tcp_subr.c
+++ b/tcp_subr.c
@@ -111,9 +111,9 @@ void tcp_respond(struct tcpcb *tp, struct tcpiphdr *ti, struct mbuf *m,
int win = 0;
DEBUG_CALL("tcp_respond");
- DEBUG_ARG("tp = %lx", (long)tp);
- DEBUG_ARG("ti = %lx", (long)ti);
- DEBUG_ARG("m = %lx", (long)m);
+ DEBUG_ARG("tp = %p", tp);
+ DEBUG_ARG("ti = %p", ti);
+ DEBUG_ARG("m = %p", m);
DEBUG_ARG("ack = %u", ack);
DEBUG_ARG("seq = %u", seq);
DEBUG_ARG("flags = %x", flags);