2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

Cast pointer to char * in sendto for SunOS

This commit is contained in:
Ted Lemon
1997-03-29 10:37:18 +00:00
parent 94b63c6467
commit 23bebe4540

View File

@@ -43,7 +43,7 @@
#ifndef lint #ifndef lint
static char copyright[] = 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 */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -118,7 +118,7 @@ int icmp_echorequest (addr)
sizeof icmp, 0)); sizeof icmp, 0));
/* Send the ICMP packet... */ /* 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); (struct sockaddr *)&to, sizeof to);
if (status < 0) if (status < 0)
warn ("icmp_echorequest: %m"); warn ("icmp_echorequest: %m");