diff options
author | Ted Lemon <source@isc.org> | 1997-03-29 10:37:18 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-03-29 10:37:18 +0000 |
commit | 23bebe4540a923e2b426046b4ef78b4a6a45efcb (patch) | |
tree | 1a367148592be4baaefe8ff1c5a6e05f8b27d241 | |
parent | 94b63c64671ed4ad61cfb37a091f72c59fa05484 (diff) | |
download | isc-dhcp-23bebe4540a923e2b426046b4ef78b4a6a45efcb.tar.gz |
Cast pointer to char * in sendto for SunOS
-rw-r--r-- | common/icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/icmp.c b/common/icmp.c index c43ea3fe..93e109e8 100644 --- a/common/icmp.c +++ b/common/icmp.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: icmp.c,v 1.3 1997/03/08 00:22:01 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: icmp.c,v 1.4 1997/03/29 10:37:18 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -118,7 +118,7 @@ int icmp_echorequest (addr) sizeof icmp, 0)); /* Send the ICMP packet... */ - status = sendto (icmp_protocol_fd, &icmp, sizeof icmp, 0, + status = sendto (icmp_protocol_fd, (char *)&icmp, sizeof icmp, 0, (struct sockaddr *)&to, sizeof to); if (status < 0) warn ("icmp_echorequest: %m"); |