aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2016-02-24 21:25:52 -0800
committerRob Landley <rob@landley.net>2016-03-01 21:13:25 -0600
commit789d2c1234cf7805d3d6df846b491a112ae93bc7 (patch)
tree6dba637cb3bfea6510e40fea4054302de894d1aa /toys
parentd3904ef62366c6a5ba5c47a583f114ac4338698b (diff)
downloadtoybox-789d2c1234cf7805d3d6df846b491a112ae93bc7.tar.gz
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".
Diffstat (limited to 'toys')
-rw-r--r--toys/pending/traceroute.c2
1 files changed, 1 insertions, 1 deletions
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),