From aec98a903f19ae408fe699ff0963b90990c46d83 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 14 Dec 2015 17:26:49 +0100 Subject: astraceroute: Use proper type for ctx.sd_len The sd_len member of struct ctx stores a copy of struct addrinfo member ai_addrlen which is of type socklen_t. Also it is used in a sendto() call which also expects a socklen_t. Adjust sd_len to be socklen_t too. Signed-off-by: Tobias Klauser --- astraceroute.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astraceroute.c b/astraceroute.c index a78cf4c..ae40ff6 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -49,9 +49,10 @@ struct ctx { char *host, *port, *dev, *payload, *bind_addr; size_t totlen, rcvlen; + socklen_t sd_len; int init_ttl, max_ttl, dns_resolv, queries, timeout; int syn, ack, ecn, fin, psh, rst, urg, tos, nofrag, proto, show; - int sd_len, dport, latitude; + int dport, latitude; }; struct proto_ops { -- cgit v1.2.3-54-g00ecf