From 42c479991fd6ae1a3189ca24fb1773ea27f30aa1 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 25 Oct 1999 16:33:13 +0000 Subject: [PATCH] in6addr_any and in6addr_loopback should be "const" --- lib/isc/include/isc/ipv6.h | 4 ++-- lib/isc/unix/ipv6.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/isc/include/isc/ipv6.h b/lib/isc/include/isc/ipv6.h index 7bb5d7b987..36606442af 100644 --- a/lib/isc/include/isc/ipv6.h +++ b/lib/isc/include/isc/ipv6.h @@ -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 diff --git a/lib/isc/unix/ipv6.c b/lib/isc/unix/ipv6.c index 54f2b5de4e..e3342f6e5e 100644 --- a/lib/isc/unix/ipv6.c +++ b/lib/isc/unix/ipv6.c @@ -17,5 +17,5 @@ #include -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;