From 789d2c1234cf7805d3d6df846b491a112ae93bc7 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Wed, 24 Feb 2016 21:25:52 -0800 Subject: Use the correct types for recvfrom. The clang FORITFY implementation doesn't like pointer signedness mismatch. "What mismatch?", you say. "The historical bug in LP32 Android that left it with a signed socklen_t". --- toys/pending/traceroute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/pending/traceroute.c b/toys/pending/traceroute.c index 4a4f55d8..9a818eb4 100644 --- a/toys/pending/traceroute.c +++ b/toys/pending/traceroute.c @@ -242,7 +242,7 @@ static void do_trace() - (t1.tv_sec * USEC + t1.tv_usec); if (pfd[0].revents) { - unsigned addrlen = sizeof(struct sockaddr_storage); + socklen_t addrlen = sizeof(struct sockaddr_storage); int rcv_len, icmp_res = 0; rcv_len = recvfrom(TT.recv_sock, toybuf, sizeof(toybuf), -- cgit v1.2.3