mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
in6addr_any and in6addr_loopback should be "const"
This commit is contained in:
parent
0f0ed7ea47
commit
42c479991f
@ -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_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 }}}
|
#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 const struct in6_addr in6addr_any;
|
||||||
extern struct in6_addr in6addr_loopback;
|
extern const struct in6_addr in6addr_loopback;
|
||||||
|
|
||||||
struct sockaddr_in6 {
|
struct sockaddr_in6 {
|
||||||
#ifdef ISC_PLATFORM_HAVESALEN
|
#ifdef ISC_PLATFORM_HAVESALEN
|
||||||
|
@ -17,5 +17,5 @@
|
|||||||
|
|
||||||
#include <isc/ipv6.h>
|
#include <isc/ipv6.h>
|
||||||
|
|
||||||
struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
|
const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
|
||||||
struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
|
const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user