]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Cast sockopt arg to char * for Solaris.
authorTed Lemon <source@isc.org>
Tue, 3 Jun 1997 02:12:20 +0000 (02:12 +0000)
committerTed Lemon <source@isc.org>
Tue, 3 Jun 1997 02:12:20 +0000 (02:12 +0000)
common/icmp.c

index 6c078cab4230407461431fabdfb9822e0a0eb997..92332fbc05e173ca7b2388dcf2c3bbc4b11c2dbe 100644 (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);