diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-08 02:51:37 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-08 02:51:37 +0000 |
commit | bb49371b5dd0857ecfc7ef59088320ecdadaea10 (patch) | |
tree | dd3834f14aa457e8bd05345656d2288103f00432 /usr.sbin/mrouted/mrinfo.c | |
parent | 7c680644c9dd9843f13719a1ca0de6da77bec37c (diff) | |
download | src-bb49371b5dd0857ecfc7ef59088320ecdadaea10.tar.gz src-bb49371b5dd0857ecfc7ef59088320ecdadaea10.zip |
Make it compile and (except for mrouted which is untested as yet) run.
Some of these ``modified'' files aren't really modified at all, but CVS
isn't smart enough to know the difference.
Notes
Notes:
svn path=/head/; revision=2560
Diffstat (limited to 'usr.sbin/mrouted/mrinfo.c')
-rw-r--r-- | usr.sbin/mrouted/mrinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/mrinfo.c b/usr.sbin/mrouted/mrinfo.c index d774cdfa5eaa..a24a2e3781d5 100644 --- a/usr.sbin/mrouted/mrinfo.c +++ b/usr.sbin/mrouted/mrinfo.c @@ -88,7 +88,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 : "?"; } @@ -326,6 +326,7 @@ usage: fprintf(stderr, int addrlen = sizeof(addr); addr.sin_family = AF_INET; + addr.sin_len = sizeof addr; addr.sin_addr.s_addr = target_addr; addr.sin_port = htons(2000); /* any port over 1024 will * do... */ |