Bug 1520646: More unified build fixes in pripv6.c, r=kaie NSPR_4_21_BETA1
authorDavid Major <dmajor@mozilla.com>
Wed, 20 Feb 2019 11:53:18 +0100
changeset 4803 40ce5d1629942819f749a83744c9766c533abbc6
parent 4802 e61b118b47e6bda53067db0d3a755b4a6ed02c79
child 4804 278b625c018bc660ee6eb4685d18a4efbcaefd47
push id310
push userkaie@kuix.de
push dateWed, 20 Feb 2019 10:53:35 +0000
reviewerskaie
bugs1520646
Bug 1520646: More unified build fixes in pripv6.c, r=kaie Mark the declarations `const` to match the definitions.
pr/src/io/pripv6.c
--- a/pr/src/io/pripv6.c
+++ b/pr/src/io/pripv6.c
@@ -11,18 +11,18 @@
 #include <string.h>
 
 #if !defined(_PR_INET6) || defined(_PR_INET6_PROBE)
 
 static PRIOMethods ipv6_to_v4_tcpMethods;
 static PRIOMethods ipv6_to_v4_udpMethods;
 static PRDescIdentity _pr_ipv6_to_ipv4_id;
 extern PRBool IsValidNetAddr(const PRNetAddr *addr);
-extern PRIPv6Addr _pr_in6addr_any;
-extern PRIPv6Addr _pr_in6addr_loopback;
+extern const PRIPv6Addr _pr_in6addr_any;
+extern const PRIPv6Addr _pr_in6addr_loopback;
 
 /*
  * convert an IPv4-mapped IPv6 addr to an IPv4 addr
  */
 static void _PR_ConvertToIpv4NetAddr(const PRNetAddr *src_v6addr,
 											PRNetAddr *dst_v4addr)
 {
 const PRUint8 *srcp;