diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-08 02:51:37 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-08 02:51:37 +0000 |
commit | 423416d7132c24768e94462586d45aa7ac4cd373 (patch) | |
tree | dd3834f14aa457e8bd05345656d2288103f00432 /usr.sbin/mrouted/mapper.c | |
parent | e3b496d3f0f19932a3182672e8283cb667967c24 (diff) | |
download | FreeBSD-src-423416d7132c24768e94462586d45aa7ac4cd373.zip FreeBSD-src-423416d7132c24768e94462586d45aa7ac4cd373.tar.gz |
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.
Diffstat (limited to 'usr.sbin/mrouted/mapper.c')
-rw-r--r-- | usr.sbin/mrouted/mapper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/mapper.c b/usr.sbin/mrouted/mapper.c index 64a05b5..5dba17c 100644 --- a/usr.sbin/mrouted/mapper.c +++ b/usr.sbin/mrouted/mapper.c @@ -575,7 +575,7 @@ char *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 : 0; } @@ -862,6 +862,7 @@ main(argc, argv) int addrlen = sizeof(addr); addr.sin_family = AF_INET; + addr.sin_len = sizeof addr; addr.sin_addr.s_addr = dvmrp_group; addr.sin_port = htons(2000); /* any port over 1024 will do... */ if ((udp = socket(AF_INET, SOCK_DGRAM, 0)) < 0 |