From 49ff274c29eaa45ae85766e62dab32faea7f32b8 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Mon, 17 Oct 2011 21:11:10 +0400 Subject: lib: make masklen2ip6() safer and faster --- lib/prefix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/prefix.h') diff --git a/lib/prefix.h b/lib/prefix.h index 675f94d4..12c0d07e 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -199,7 +199,7 @@ extern void apply_mask_ipv6 (struct prefix_ipv6 *); *((struct prefix_ipv6 *)(DST)) = *((const struct prefix_ipv6 *)(SRC)); extern int ip6_masklen (struct in6_addr); -extern void masklen2ip6 (int, struct in6_addr *); +extern void masklen2ip6 (const int, struct in6_addr *); extern void str2in6_addr (const char *, struct in6_addr *); extern const char *inet6_ntoa (struct in6_addr); -- cgit v1.2.1