aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted/mtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/mrouted/mtrace.c')
-rw-r--r--usr.sbin/mrouted/mtrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/mtrace.c b/usr.sbin/mrouted/mtrace.c
index 9bee6b248e52..5a8870e9c339 100644
--- a/usr.sbin/mrouted/mtrace.c
+++ b/usr.sbin/mrouted/mtrace.c
@@ -16,7 +16,7 @@ inet_name(addr)
{
struct hostent *e;
- e = gethostbyaddr(&addr, sizeof(addr), AF_INET);
+ e = gethostbyaddr((char *)&addr, sizeof(addr), AF_INET);
return e ? e->h_name : "?";
}
@@ -219,6 +219,7 @@ usage: printf("usage: mtrace -s <src> -g <grp> -d <dst> -n <# reports> \n");
/* Obtain the local address from which to send out packets */
addr.sin_family = AF_INET;
+ addr.sin_len = sizeof addr;
addr.sin_addr.s_addr = qgrp;
addr.sin_port = htons(2000);