summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-10-17 21:11:10 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-11-21 18:26:04 +0400
commit49ff274c29eaa45ae85766e62dab32faea7f32b8 (patch)
tree36b2e399ad9dbec4e525d134ba5891aa117a8c66 /lib/prefix.h
parentba1a944aa7adffd9194ef0ad61649fe3e02b0f38 (diff)
lib: make masklen2ip6() safer and faster
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h2
1 files changed, 1 insertions, 1 deletions
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);