2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

Cast sockopt arg to char * for Solaris.

This commit is contained in:
Ted Lemon 1997-06-03 02:12:20 +00:00
parent 1ac5bc1aa0
commit a37e5e0930

View File

@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
"$Id: icmp.c,v 1.5 1997/05/09 08:05:28 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
"$Id: icmp.c,v 1.6 1997/06/03 02:12:20 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@ -82,8 +82,8 @@ void icmp_startup (routep, handler)
/* Make sure it does routing... */
state = 0;
if (setsockopt (icmp_protocol_fd,
SOL_SOCKET, SO_DONTROUTE, &state, sizeof state) < 0)
if (setsockopt (icmp_protocol_fd, SOL_SOCKET, SO_DONTROUTE,
(char *)&state, sizeof state) < 0)
error ("Unable to disable SO_DONTROUTE on ICMP socket: %m");
add_protocol ("icmp", icmp_protocol_fd, icmp_echoreply, handler);