]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Cast pointer to char * in sendto for SunOS
authorTed Lemon <source@isc.org>
Sat, 29 Mar 1997 10:37:18 +0000 (10:37 +0000)
committerTed Lemon <source@isc.org>
Sat, 29 Mar 1997 10:37:18 +0000 (10:37 +0000)
common/icmp.c

index c43ea3fe633318c7cf954364893233b656e5cbe2..93e109e887380c3fb33b0fc8d9a4c9f98aa09fbb 100644 (file)
@@ -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");