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

in6addr_any and in6addr_loopback should be "const"

This commit is contained in:
Mark Andrews 1999-10-25 16:33:13 +00:00
parent 0f0ed7ea47
commit 42c479991f
2 changed files with 4 additions and 4 deletions

View File

@ -66,8 +66,8 @@ struct in6_addr {
#define IN6ADDR_ANY_INIT {{{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }}}
#define IN6ADDR_LOOPBACK_INIT {{{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }}}
extern struct in6_addr in6addr_any;
extern struct in6_addr in6addr_loopback;
extern const struct in6_addr in6addr_any;
extern const struct in6_addr in6addr_loopback;
struct sockaddr_in6 {
#ifdef ISC_PLATFORM_HAVESALEN

View File

@ -17,5 +17,5 @@
#include <isc/ipv6.h>
struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;